Visual Computing Library  devel
Loading...
Searching...
No Matches
vcl::TypeAt< I, T > Struct Template Reference

Get the type at a given index in a pack of types (variadic templates) or a TypeWrapper. More...

#include <vclib/base/variadic_templates.h>

Public Types

using type = std::tuple_element_t< I, std::tuple< T... > >
 

Detailed Description

template<uint I, typename... T>
struct vcl::TypeAt< I, T >

Get the type at a given index in a pack of types (variadic templates) or a TypeWrapper.

Usage:

using ResType = TypeAt<1, int, float, double>::type;
static_assert(std::is_same<ResType, float>::value, "");
A class representing a line segment in n-dimensional space. The class is parameterized by a PointConc...
Definition segment.h:41

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