Struct type_list_size< type_list< Type... > >

Synopsis

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

template<typename... Type>
struct type_list_size<type_list<Type...>>
        : std::integral_constant<std::size_t, sizeof...(Type)>

Description

Compile-time number of elements in a type list.

Template Parameters:

Type - Types provided by the type list.

Inheritance

Ancestors: std::integral_constant< std::size_t, sizeof...(Type)>

Source

Lines 89-92 in src/entt/core/type_traits.hpp.

template<typename... Type>
struct type_list_size<type_list<Type...>>
        : std::integral_constant<std::size_t, sizeof...(Type)>
{};





Add Discussion

Log in to comment