refl-cpp
refl::util::type_list< Ts > Struct Template Reference

Represents a compile-time list of types provided as variadic template parameters. More...

#include <refl.hpp>

Static Public Attributes

static constexpr intptr_t size = sizeof...(Ts)
 The number of types in this type_list. More...
 

Detailed Description

template<typename... Ts>
struct refl::util::type_list< Ts >

Represents a compile-time list of types provided as variadic template parameters.

type_list is an empty TrivialType. Instances of it can freely be created to communicate the list of represented types. type_lists support many standard operations that are implicitly available with ADL-lookup. type_list is used by refl-cpp mostly to represent the list of refl::field_descriptor, refl::function_descriptor specializations that allow the compile-time reflection of a type's members.

See also
refl::util::for_each
refl::util::map_to_array
refl::util::map_to_tuple
refl::member_list

Examples

for_each(type_list<int, float>(), [](auto) { ... });

Member Data Documentation

◆ size

template<typename... Ts>
constexpr intptr_t refl::util::type_list< Ts >::size = sizeof...(Ts)
staticconstexpr

The number of types in this type_list.


The documentation for this struct was generated from the following file:
refl::util::for_each
constexpr void for_each(type_list< Ts... > list, F &&f)
Applies function F to each type in the type_list.
Definition: refl.hpp:1686