Blaze
3.9
Toggle main menu visibility
Loading...
Searching...
No Matches
blaze
util
typetraits
HasLessThan.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_UTIL_TYPETRAITS_HASLESSTHAN_H_
36
#define _BLAZE_UTIL_TYPETRAITS_HASLESSTHAN_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
LessThan_t
=
decltype
( std::declval<T1>() < std::declval<T2>() );
61
//*************************************************************************************************
62
63
64
//*************************************************************************************************
83
template
<
typename
T1,
typename
T2 >
84
using
HasLessThan
=
IsDetected< LessThan_t, T1, T2 >
;
85
//*************************************************************************************************
86
87
88
//*************************************************************************************************
101
template
<
typename
T1,
typename
T2 >
102
constexpr
bool
HasLessThan_v
=
HasLessThan<T1,T2>::value
;
103
//*************************************************************************************************
104
105
}
// namespace blaze
106
107
#endif
IsDetected.h
Header file for the IsDetected type trait.
blaze::HasLessThan
IsDetected< LessThan_t, T1, T2 > HasLessThan
Compile time check for the availability of a less-than operation between two data types.
Definition
HasLessThan.h:84
blaze::IsDetected
typename DetectedOr< NoneSuch, OP, Ts... >::Value_t IsDetected
Compile time detection of type properties.
Definition
IsDetected.h:151
blaze::LessThan_t
decltype(std::declval< T1 >()< std::declval< T2 >()) LessThan_t
Auxiliary type alias for the HasLessThan type trait.
Definition
HasLessThan.h:60
blaze::HasLessThan_v
constexpr bool HasLessThan_v
Auxiliary variable template for the HasLessThan type trait.
Definition
HasLessThan.h:102
Generated by
1.18.0