E.V.E
v2022.03.00
eve::supports_ordering< Type > Struct Template Reference

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

#include <eve/product_type.hpp>

Detailed Description

template<typename Type>
struct eve::supports_ordering< Type >

Register a user-defined type to supports ordering.

Template Parameters
TypeType to register as supporting ordering operators

Required header: #include <eve/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:66