SUNphi  1.0
TupleTypeCat.hpp File Reference

Used to detect the type of catting a number of Tuple. More...

Go to the source code of this file.

Typedefs

template<class... Tp>
using SUNphi::TupleTypeCatT = decltype(tuple_cat(TupleWrap< Tp >{}...))
 

Detailed Description

Used to detect the type of catting a number of Tuple.

Definition in file TupleTypeCat.hpp.

Typedef Documentation

template<class... Tp>
using SUNphi::TupleTypeCatT = typedef decltype(tuple_cat(TupleWrap<Tp>{}...))

Define a tuple catting all tuple parameter types, and plain types of all parameters

Creates a tuple from all passed parameters. If an argument is a tuple, consider its parameter types. Otherwise consider the type itself.

Example:

typedef Tuple<int,double> T;
TupleTypeCatT<T,T> test1; // Tuple<int,double,int,double>
TupleTypeCatT<T,char> test2; // Tuple<int,double,char>

Definition at line 27 of file TupleTypeCat.hpp.