E.V.E
v2023.02.15
 
Loading...
Searching...
No Matches
eve::supports_ordering< Type > Struct Template Reference

Register a user-defined type to supports ordering. More...

#include <eve/traits/product_type.hpp>

Detailed Description

template<typename Type>
struct eve::supports_ordering< Type >
Template Parameters
TypeType to register as supporting ordering operators

Required header: #include <eve/traits/product_type.hpp>

By default, instances of eve::wide<T> where T is an User-Defined Product Type supports ordering. However, one can specialize eve::supports_ordering for a given type to evaluates to false in order to disable ordering for this type.

Alternatively, any type T providing an internal eve_disable_ordering type will be treated as if eve::supports_ordering<T>::value evaluates to false, thus disabling ordering operators for eve::wide<T>.

Helper variable template

template<typename Type>
inline constexpr bool supports_ordering_v = eve::supports_ordering<Type>::value;
Register a user-defined type to supports ordering.
Definition product_type.hpp:63