Dune::Element< N > Struct Template Reference
[Common (foundation classes)]

Get the N-th 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
< typename tuple_element< N,
Pair< T1, T2 > >::type >
::NonConstType 
get (Pair< T1, T2 > &tuple)
 Get the N-th element of the tuple.
template<typename T1 , typename T2 >
static TupleAccessTraits
< typename tuple_element< N,
Pair< T1, T2 > >::type >
::ConstType 
get (const Pair< T1, T2 > &tuple)
 Get the N-th element of the tuple.

Detailed Description

template<int N>
struct Dune::Element< N >

Get the N-th element of a tuple.


Member Function Documentation

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

Get the N-th element of the tuple.

Parameters:
tuple The tuple whose N-th element we want.
Returns:
The N-th element of the tuple.

Referenced by Dune::get(), and Dune::Element< N >::get().


The documentation for this struct was generated from the following file:
Generated on Mon Apr 26 10:45:24 2010 for dune-common by  doxygen 1.6.3