DASH  0.3.0
dash::has_operator_equal_impl< T, EqualTo > Struct Template Reference

Type trait indicating whether a type has a comparision operator== defined. More...

#include <Types.h>

Public Types

using type = typename std::is_same< bool, decltype(test< T, EqualTo >(0))>::type
 

Static Public Member Functions

template<class U , class V >
static auto test (U *) -> decltype(std::declval< U >()==std::declval< V >())
 
template<typename , typename >
static auto test (...) -> std::false_type
 

Detailed Description

template<class T, class EqualTo>
struct dash::has_operator_equal_impl< T, EqualTo >

Type trait indicating whether a type has a comparision operator== defined.

bool test = has_operator_equal<MyType>::value;
bool test = has_operator_equal<MyType, int>::value;

Definition at line 276 of file Types.h.


The documentation for this struct was generated from the following file: