Struct type_list_contains< type_list< Type... >, Other >

Synopsis

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

template<typename... Type, typename Other>
struct type_list_contains<type_list<Type...>, Other>: std::disjunction<std::is_same<Type, Other>...>

Description

Provides the member constant value to true if a type list contains a given type, false otherwise.

Template Parameters

Type - Types provided by the type list.

Other - Type to look for.

Inheritance

Ancestors: std::disjunction< std::is_same< Type, Other >... >

Source

Lines 219-220 in src/entt/core/type_traits.hpp.

template<typename... Type, typename Other>
struct type_list_contains<type_list<Type...>, Other>: std::disjunction<std::is_same<Type, Other>...> {};





Add Discussion

Log in to comment