Struct is_equality_comparable< Type, std::void_t< decltype(std::declval< Type >()==std::declval< Type >())> >

Synopsis

#include <src/entt/core/type_traits.hpp>

template<typename Type>
struct is_equality_comparable<Type, std::void_t<decltype(std::declval<Type>() == std::declval<Type>())>>
    : std::bool_constant<internal::maybe_equality_comparable<Type>(choice<2>)>

Description

Provides the member constant value to true if a given type is equality comparable, false otherwise.

Template Parameters

Type - The type to test.

Inheritance

Ancestors: std::bool_constant< internal::maybe_equality_comparable< Type >(choice< 2 >)>

Source

Lines 583-585 in src/entt/core/type_traits.hpp.

template<typename Type>
struct is_equality_comparable<Type, std::void_t<decltype(std::declval<Type>() == std::declval<Type>())>>
    : std::bool_constant<internal::maybe_equality_comparable<Type>(choice<2>)> {};





Add Discussion

Log in to comment