Visual Computing Library  devel
Loading...
Searching...
No Matches
vcl::FirstType< Args > Struct Template Reference

Get the first type of a pack of types (variadic templates) or a TypeWrapper. More...

#include <vclib/base/variadic_templates.h>

Public Types

using type = std::tuple_element< 0, std::tuple< Args... > >::type
 

Detailed Description

template<typename... Args>
struct vcl::FirstType< Args >

Get the first type of a pack of types (variadic templates) or a TypeWrapper.

Usage:

using ResType = FirstType<int, float, double>::type;
static_assert(std::is_same<ResType, int>::value, "");
A class representing a box in N-dimensional space.
Definition box.h:46

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