Visual Computing Library
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/types/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 line segment in n-dimensional space. The class is parameterized by a PointConc...
Definition segment.h:43

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