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 Sun Nov 15 22:28:22 2009 for dune-common by  doxygen 1.5.6