Blaze 3.9
HasGreaterThan.h
Go to the documentation of this file.
1//=================================================================================================
33//=================================================================================================
34
35#ifndef _BLAZE_UTIL_TYPETRAITS_HASGREATERTHAN_H_
36#define _BLAZE_UTIL_TYPETRAITS_HASGREATERTHAN_H_
37
38
39//*************************************************************************************************
40// Includes
41//*************************************************************************************************
42
43#include <utility>
45
46
47namespace blaze {
48
49//=================================================================================================
50//
51// CLASS DEFINITION
52//
53//=================================================================================================
54
55//*************************************************************************************************
59template< typename T1, typename T2 >
60using GreaterThan_t = decltype( std::declval<T1>() > std::declval<T2>() );
61//*************************************************************************************************
62
63
64//*************************************************************************************************
83template< typename T1, typename T2 >
85//*************************************************************************************************
86
87
88//*************************************************************************************************
101template< typename T1, typename T2 >
103//*************************************************************************************************
104
105} // namespace blaze
106
107#endif
Header file for the IsDetected type trait.
constexpr bool HasGreaterThan_v
Auxiliary variable template for the HasGreaterThan type trait.
Definition: HasGreaterThan.h:102
decltype(std::declval< T1 >() > std::declval< T2 >()) GreaterThan_t
Auxiliary type alias for the HasGreaterThan type trait.
Definition: HasGreaterThan.h:60
typename DetectedOr< NoneSuch, OP, Ts... >::Value_t IsDetected
Compile time detection of type properties.
Definition: IsDetected.h:151
IsDetected< GreaterThan_t, T1, T2 > HasGreaterThan
Compile time check for the availability of a greater-than operation between two data types.
Definition: HasGreaterThan.h:84