Templa 0.0.1-alpha
C++ Metaprogramming Utilities
Loading...
Searching...
No Matches
templa::type_at_index< idx, Ts > Struct Template Reference

Get the type at a given index in a parameter pack. More...

#include <type_list.hpp>

Public Types

using type
 Type at index idx.

Detailed Description

template<std::size_t idx, typename... Ts>
struct templa::type_at_index< idx, Ts >

Get the type at a given index in a parameter pack.

Template Parameters
idxIndex to access.
TsParameter pack of types.

Member Typedef Documentation

◆ type

template<std::size_t idx, typename... Ts>
using templa::type_at_index< idx, Ts >::type
Initial value:
decltype([]<std::size_t... i>(std::index_sequence<i...>)
{
return std::type_identity<Ts>();
Helper visitor struct inheriting from multiple function objects.
Definition type_list.hpp:229
Get the type at a given index in a parameter pack.
Definition type_list.hpp:252
std::integral_constant< std::size_t, x > value
Integral constant wrapper for a size_t value.
Definition type_list.hpp:242

Type at index idx.


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