Blaze 3.9
And.h
Go to the documentation of this file.
1//=================================================================================================
33//=================================================================================================
34
35#ifndef _BLAZE_MATH_FUNCTORS_AND_H_
36#define _BLAZE_MATH_FUNCTORS_AND_H_
37
38
39//*************************************************************************************************
40// Includes
41//*************************************************************************************************
42
43#include <utility>
44#include <blaze/system/Inline.h>
45
46
47namespace blaze {
48
49//=================================================================================================
50//
51// CLASS DEFINITION
52//
53//=================================================================================================
54
55//*************************************************************************************************
59struct And
60{
61 //**********************************************************************************************
68 template< typename T1, typename T2 >
69 BLAZE_ALWAYS_INLINE decltype(auto) operator()( T1&& a, T2&& b ) const
70 {
71 return std::forward<T1>( a ) && std::forward<T2>( b );
72 }
73 //**********************************************************************************************
74};
75//*************************************************************************************************
76
77} // namespace blaze
78
79#endif
#define BLAZE_ALWAYS_INLINE
Platform dependent setup of an enforced inline keyword.
Definition: Inline.h:85
Generic wrapper for the logical AND operator.
Definition: And.h:60
System settings for the inline keywords.