dune-common  2.3.1
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Dune::Pair< T1, TT > Struct Template Reference

A tuple consisting of two objects. More...

#include <dune/common/tuples.hh>

Inheritance diagram for Dune::Pair< T1, TT >:
Dune::tuple< T1, T2, T3, T4, T5, T6, T7, T8, T9 >

Public Types

typedef TT Type2
 The type of the second field.

Public Member Functions

template<typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9 >
 Pair (typename TupleAccessTraits< T1 >::ParameterType t1, T2 &t2, T3 &t3, T4 &t4, T5 &t5, T6 &t6, T7 &t7, T8 &t8, T9 &t9)
 The number of values we hold.
 Pair (typename TupleAccessTraits< Type1 >::ParameterType t1, TT &t2)
 Constructor.
 Pair ()
template<typename U1 , typename U2 >
 Pair (const Pair< U1, U2 > &other)
 Copy Constructor for implicit type conversion.
template<typename U1 , typename U2 >
Pairoperator= (const Pair< U1, U2 > &other)
 Assignment operator for implicit type conversion.
Pairoperator= (const Pair &other)
TupleAccessTraits< Type1 >
::NonConstType 
first ()
 Get the first value.
TupleAccessTraits< Type1 >
::ConstType 
first () const
 Get the first value.
TupleAccessTraits< Type2 >
::NonConstType 
second ()
 Get the second value.
TupleAccessTraits< Type2 >
::ConstType 
second () const
 Get the second value.

Static Public Member Functions

typedef T1 Type1
 The type of the first field.

Public Attributes

Type1 first_
 The value of the first field.
Type2 second_
 The value of the second field.

Detailed Description

template<typename T1, typename TT>
struct Dune::Pair< T1, TT >

A tuple consisting of two objects.

This is similar to std::pair


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