SpECTRE  v2024.04.12
tt::has_inequivalence< T, U > Struct Template Reference

Check if type T has operator!= defined. More...

#include <HasInequivalence.hpp>

Detailed Description

template<typename T, typename U = void>
struct tt::has_inequivalence< T, U >

Check if type T has operator!= defined.

Details

Inherits from std::true_type if the type T has operator!= defined, otherwise inherits from std::false_type

Usage

For any type T,

using result = tt::has_inequivalence<T>;
Check if type T has operator!= defined.
Definition: HasInequivalence.hpp:41

Returns: std::bool_constant

Semantics: If the type T has operator!= defined, then

typename result::type = std::true_type;

otherwise

typename result::type = std::false_type;

Example

"Failed testing type trait has_inequivalence");
"Failed testing type trait has_inequivalence");
"Failed testing type trait has_inequivalence");
static_assert(tt::has_inequivalence_v<TestHelpers::C>,
"Failed testing type trait has_inequivalence");
typename has_inequivalence< T >::type has_inequivalence_t
Definition: HasInequivalence.hpp:56
See also
has_equivalence
Template Parameters
Tthe type we want to know if it has operator!=

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