Struct type_list_element< 0u, type_list< Type, Other... > >

Synopsis

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

template<typename Type, typename... Other>
struct type_list_element<0u, type_list<Type, Other...>>

Description

Provides compile-time indexed access to the types of a type list.

Template Parameters

Type - First type provided by the type list.

Other - Other types provided by the type list.

Source

Lines 158-162 in src/entt/core/type_traits.hpp.

template<typename Type, typename... Other>
struct type_list_element<0u, type_list<Type, Other...>> {
    /*! @brief Searched type. */
    using type = Type;
};





Add Discussion

Log in to comment