dune-common  2.2.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 > Dune::tuple< RemoteIndexModifier, GlobalIndexModifier, BoolListModifier, const ConstRemoteIndexIterator >

Public Types

typedef TT Type2
 The type of the second field. More...
 

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. More...
 
 Pair (typename TupleAccessTraits< Type1 >::ParameterType t1, TT &t2)
 Constructor. More...
 
 Pair ()
 
template<typename U1 , typename U2 >
 Pair (const Pair< U1, U2 > &other)
 Copy Constructor for implicit type conversion. More...
 
template<typename U1 , typename U2 >
Pairoperator= (const Pair< U1, U2 > &other)
 Assignment operator for implicit type conversion. More...
 
Pairoperator= (const Pair &other)
 
TupleAccessTraits< Type1 >
::NonConstType 
first ()
 Get the first value. More...
 
TupleAccessTraits< Type1 >
::ConstType 
first () const
 Get the first value. More...
 
TupleAccessTraits< Type2 >
::NonConstType 
second ()
 Get the second value. More...
 
TupleAccessTraits< Type2 >
::ConstType 
second () const
 Get the second value. More...
 
template<typename U1 , typename U2 >
Pair< T1, T2 > & operator= (const Pair< U1, U2 > &other)
 

Static Public Member Functions

typedef T1 Type1
 The type of the first field. More...
 

Public Attributes

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

Detailed Description

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

A tuple consisting of two objects.

This is similar to std::pair

Member Function Documentation

template<typename T1, typename TT>
template<typename U1 , typename U2 >
Pair<T1,T2>& Dune::Pair< T1, TT >::operator= ( const Pair< U1, U2 > &  other)
inline

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