MorphoGraphX  2.0-1-227
Public Types | Public Member Functions | Public Attributes | List of all members
mgx::refpair< T, U > Class Template Reference

#include <Tie.hpp>

Public Types

typedef T first_type
 
typedef U second_type
 

Public Member Functions

 refpair (T &x, U &y)
 Construct a pair of references to x and y. More...
 
 refpair (refpair const &rp)
 Construct a copy. More...
 
refpairoperator= (std::pair< T, U > const &p)
 Assign the values of p to the references in this pair. More...
 

Public Attributes

T & first
 The first member of the pair. More...
 
U & second
 The second member of the pair. More...
 

Detailed Description

template<typename T, typename U>
class mgx::refpair< T, U >

Class used to hold references for the tie() function.

Definition at line 31 of file Tie.hpp.

Member Typedef Documentation

◆ first_type

template<typename T , typename U >
typedef T mgx::refpair< T, U >::first_type

Definition at line 32 of file Tie.hpp.

◆ second_type

template<typename T , typename U >
typedef U mgx::refpair< T, U >::second_type

Definition at line 33 of file Tie.hpp.

Constructor & Destructor Documentation

◆ refpair() [1/2]

template<typename T , typename U >
mgx::refpair< T, U >::refpair ( T &  x,
U &  y 
)
inline

Construct a pair of references to x and y.

Definition at line 36 of file Tie.hpp.

◆ refpair() [2/2]

template<typename T , typename U >
mgx::refpair< T, U >::refpair ( refpair< T, U > const &  rp)
inline

Construct a copy.

Definition at line 38 of file Tie.hpp.

Member Function Documentation

◆ operator=()

template<typename T , typename U >
refpair& mgx::refpair< T, U >::operator= ( std::pair< T, U > const &  p)
inline

Assign the values of p to the references in this pair.

Definition at line 41 of file Tie.hpp.

Member Data Documentation

◆ first

template<typename T , typename U >
T& mgx::refpair< T, U >::first

The first member of the pair.

Definition at line 49 of file Tie.hpp.

◆ second

template<typename T , typename U >
U& mgx::refpair< T, U >::second

The second member of the pair.

Definition at line 51 of file Tie.hpp.


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