cpp-toolbox  0.0.1
A toolbox library for C++
Loading...
Searching...
No Matches
toolbox::traits::type_list< Ts > Struct Template Reference

类型列表容器/Type list container More...

#include <type_traits.hpp>

Static Public Attributes

static constexpr size_t size = sizeof...(Ts)
 

Detailed Description

template<typename... Ts>
struct toolbox::traits::type_list< Ts >

类型列表容器/Type list container

Template Parameters
Ts类型参数包/Parameter pack of types
// 创建类型列表/Create type list
using number_types = type_list<int, float, double>;
static_assert(number_types::size == 3);
// 创建空类型列表/Create empty type list
using empty_list = type_list<>;
static_assert(empty_list::size == 0);
类型列表容器/Type list container
Definition type_traits.hpp:302

Member Data Documentation

◆ size

template<typename... Ts>
constexpr size_t toolbox::traits::type_list< Ts >::size = sizeof...(Ts)
staticconstexpr

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