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

A tuple consisting of one object. Specialization of Pair that really is a single value. More...

#include <dune/common/tuples.hh>

Public Types

typedef T1 Type1
 The type of the first field. More...
 
typedef Nil Type2
 The type of the (non-existent) second field is Nil. This typedef is useful in template metaprogramming, since it allows you to specialise for Nil instead of Pair<T, Nil> More...
 

Public Member Functions

 Pair (typename TupleAccessTraits< T1 >::ParameterType first, const Nil &, const Nil &, const Nil &, const Nil &, const Nil &, const Nil &, const Nil &, const Nil &)
 Constructor. More...
 
 Pair (typename TupleAccessTraits< T1 >::ParameterType first, const Nil &)
 Constructor. More...
 
 Pair ()
 
template<typename T2 >
 Pair (const Pair< T2, Nil > &other)
 Copy constructor for type conversion. More...
 
template<typename T2 >
Pairoperator= (const Pair< T2, Nil > &other)
 Assignment operator for type conversion. More...
 
Pairoperator= (const Pair &other)
 Assignment operator. More...
 
TupleAccessTraits< Type1 >
::NonConstType 
first ()
 Get the first value. More...
 
TupleAccessTraits< Type1 >
::ConstType 
first () const
 Get the first value. More...
 
template<typename T2 >
Pair< T1, Nil > & operator= (const Pair< T2, Nil > &other)
 

Public Attributes

Type1 first_
 The value of the first field. More...
 

Detailed Description

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

A tuple consisting of one object. Specialization of Pair that really is a single value.

Member Function Documentation

template<typename T1 >
template<typename T2 >
Pair<T1,Nil>& Dune::Pair< T1, Nil >::operator= ( const Pair< T2, Nil > &  other)

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