EnTT 3.13.0
Loading...
Searching...
No Matches
Public Types | Static Public Attributes | List of all members
entt::value_list_index< Value, value_list< First, Other... > > Struct Template Reference

Provides compile-time type access to the values of a value list. More...

#include <type_traits.hpp>

Public Types

using value_type = std::size_t
 Unsigned integer type.
 

Static Public Attributes

static constexpr value_type value = 1u + value_list_index<Value, value_list<Other...>>::value
 Compile-time position of the given value in the sublist.
 

Detailed Description

template<auto Value, auto First, auto... Other>
struct entt::value_list_index< Value, value_list< First, Other... > >

Provides compile-time type access to the values of a value list.

Template Parameters
ValueValue to look for and for which to return the index.
FirstFirst value provided by the value list.
OtherOther values provided by the value list.

Definition at line 425 of file type_traits.hpp.

Member Typedef Documentation

◆ value_type

template<auto Value, auto First, auto... Other>
using entt::value_list_index< Value, value_list< First, Other... > >::value_type = std::size_t

Unsigned integer type.

Definition at line 427 of file type_traits.hpp.

Member Data Documentation

◆ value

template<auto Value, auto First, auto... Other>
constexpr value_type entt::value_list_index< Value, value_list< First, Other... > >::value = 1u + value_list_index<Value, value_list<Other...>>::value
staticconstexpr

Compile-time position of the given value in the sublist.

Definition at line 429 of file type_traits.hpp.


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