SUNphi  1.0
TupleWrap.hpp File Reference

Take a Tuple or a single type and returns a Tuple. More...

Go to the source code of this file.

Classes

struct  SUNphi::_TupleWrap< T >
 
struct  SUNphi::_TupleWrap< Tuple< T... > >
 

Typedefs

template<class T >
using SUNphi::TupleWrap = typename _TupleWrap< T >::type
 

Detailed Description

Take a Tuple or a single type and returns a Tuple.

Definition in file TupleWrap.hpp.

Typedef Documentation

template<class T >
using SUNphi::TupleWrap = typedef typename _TupleWrap<T>::type

Put the type into a Tuple, if the type is not already a Tuple.

The following situations are possible:

  • A non-Tuple type T is put inside a Tuple<T>
  • A Tuple<T> is mapped to itself

Example:

TupleWrap<int> test1; //sTuple<int>
TupleWrap<Tuple<int>> test2; //Tuple<int>

Definition at line 58 of file TupleWrap.hpp.