Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
util
typetraits
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>
44
#include <
blaze/util/typetraits/IsDetected.h
>
45
46
47
namespace
blaze {
48
49
//=================================================================================================
50
//
51
// CLASS DEFINITION
52
//
53
//=================================================================================================
54
55
//*************************************************************************************************
59
template
<
typename
T1,
typename
T2 >
60
using
GreaterThan_t
=
decltype
( std::declval<T1>() > std::declval<T2>() );
61
//*************************************************************************************************
62
63
64
//*************************************************************************************************
83
template
<
typename
T1,
typename
T2 >
84
using
HasGreaterThan
=
IsDetected< GreaterThan_t, T1, T2 >
;
85
//*************************************************************************************************
86
87
88
//*************************************************************************************************
101
template
<
typename
T1,
typename
T2 >
102
constexpr
bool
HasGreaterThan_v
=
HasGreaterThan<T1,T2>::value
;
103
//*************************************************************************************************
104
105
}
// namespace blaze
106
107
#endif
IsDetected.h
Header file for the IsDetected type trait.
blaze::HasGreaterThan_v
constexpr bool HasGreaterThan_v
Auxiliary variable template for the HasGreaterThan type trait.
Definition
HasGreaterThan.h:102
blaze::HasGreaterThan
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
blaze::IsDetected
typename DetectedOr< NoneSuch, OP, Ts... >::Value_t IsDetected
Compile time detection of type properties.
Definition
IsDetected.h:151
blaze::GreaterThan_t
decltype(std::declval< T1 >() > std::declval< T2 >()) GreaterThan_t
Auxiliary type alias for the HasGreaterThan type trait.
Definition
HasGreaterThan.h:60
Generated by
1.18.0