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::true_type

Description

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

Template Parameters

Type - Potentially equality comparable type.

Inheritance

Ancestors: true_type

Source

Lines 242-245 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::true_type
{};





Add Discussion

Log in to comment