Class used to hold references for the util::tie() function. More...
#include <util/tie.h>
Public Types | |
typedef T | first_type |
typedef U | second_type |
Public Member Functions | |
refpair & | operator= (std::pair< first_type, second_type > const &p) |
Assign the values of p to the references in this pair. | |
refpair (refpair const &rp) | |
Construct a copy. | |
refpair (T &x, U &y) | |
Construct a pair of references to x and y . | |
Public Attributes | |
T & | first |
The first member of the pair. | |
U & | second |
The second member of the pair. |
Class used to hold references for the util::tie() function.
Definition at line 24 of file tie.h.
util::refpair< T, U >::refpair | ( | T & | x, | |
U & | y | |||
) | [inline] |
util::refpair< T, U >::refpair | ( | refpair< T, U > const & | rp | ) | [inline] |
refpair& util::refpair< T, U >::operator= | ( | std::pair< first_type, second_type > const & | p | ) | [inline] |
Assign the values of p
to the references in this pair.
Definition at line 37 of file tie.h.
References util::refpair< T, U >::first, and util::refpair< T, U >::second.
T& util::refpair< T, U >::first |
The first member of the pair.
Definition at line 54 of file tie.h.
Referenced by util::refpair< T, U >::operator=().
U& util::refpair< T, U >::second |
The second member of the pair.
Definition at line 56 of file tie.h.
Referenced by util::refpair< T, U >::operator=().