dune-common 2.1.1
Static Public Member Functions
Dune::Element< 0 > Struct Template Reference

Get the first element of a tuple. More...

#include <dune/common/tuples.hh>

List of all members.

Static Public Member Functions

template<typename T1 , typename T2 >
static TupleAccessTraits< T1 >
::NonConstType 
get (Pair< T1, T2 > &tuple)
 Get the first element of the tuple.
template<typename T1 , typename T2 >
static TupleAccessTraits< T1 >
::ConstType 
get (const Pair< T1, T2 > &tuple)
 Get the first element of the tuple.

Detailed Description

template<>
struct Dune::Element< 0 >

Get the first element of a tuple.


Member Function Documentation

template<typename T1 , typename T2 >
static TupleAccessTraits<T1>::NonConstType Dune::Element< 0 >::get ( Pair< T1, T2 > &  tuple) [inline, static]

Get the first element of the tuple.

Parameters:
tupleThe tuple whose first element we want.
Returns:
The first element of the tuple.

References Dune::Pair< T1, TT >::first().


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