Alexandria 2.31.0
SDC-CH common library for the Euclid project
Loading...
Searching...
No Matches
Classes | Functions
Euclid::Tuple Namespace Reference

Classes

struct  TupleTailImpl
 
struct  TupleTailImpl< _index_sequence< Is... > >
 

Functions

template<typename T0 , typename... Tn>
static std::tuple< Tn... > Tail (std::tuple< T0, Tn... > &&tuple)
 
template<typename T0 , typename... Tn>
static std::tuple< Tn... > Tail (const std::tuple< T0, Tn... > &tuple)
 

Function Documentation

◆ Tail() [1/2]

template<typename T0 , typename... Tn>
static std::tuple< Tn... > Euclid::Tuple::Tail ( const std::tuple< T0, Tn... > &  tuple)
static

Use this to extract the tail of a tuple

For instance:

auto x = TupleTail::get(x);

The type of x will be std::tuple<int, char>, and the content will be copied

Definition at line 75 of file Tuples.h.

◆ Tail() [2/2]

template<typename T0 , typename... Tn>
static std::tuple< Tn... > Euclid::Tuple::Tail ( std::tuple< T0, Tn... > &&  tuple)
static

Use this to extract the tail of a tuple

For instance:

auto x = TupleTail::get(x);

The type of x will be std::tuple<int, char>, and the content will be moved

Definition at line 58 of file Tuples.h.

References std::move().

Here is the call graph for this function: