Dune::Element< N > Struct Template Reference
[Common]

#include <tuples.hh>

List of all members.


Detailed Description

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

Get the N-th element of a tuple.


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.

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.


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

Generated on 9 Apr 2008 with Doxygen (ver 1.5.2) [logfile].