Struct value_list_element< Index, value_list< Value, Other... > >

Synopsis

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

template<std::size_t Index, auto Value, auto... Other>
struct value_list_element<Index, value_list<Value, Other...>>
    : value_list_element<Index - 1u, value_list<Other...>>

Description

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

Template Parameters

Index - Index of the value to return.

Value - First value provided by the value list.

Other - Other values provided by the value list.

Inheritance

Ancestors: value_list_element

Source

Lines 317-320 in src/entt/core/type_traits.hpp.

template<std::size_t Index, auto Value, auto... Other>
struct value_list_element<Index, value_list<Value, Other...>>
    : value_list_element<Index - 1u, value_list<Other...>>
{};





Add Discussion

Log in to comment