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

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:
tuple The tuple whose first element we want.
Returns:
The first element of the tuple.

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

Generated on Fri Apr 29 2011 with Doxygen (ver 1.7.1) [doxygen-log,error-log].