32 template <
typename T,
typename U>
struct refpair {
34 typedef U second_type;
U & second
The second member of the pair.
Definition: Tie.hpp:60
refpair & operator=(std::pair< T, U > const &p)
Assign the values of p to the references in this pair.
Definition: Tie.hpp:50
T & first
The first member of the pair.
Definition: Tie.hpp:58
refpair(refpair const &rp)
Construct a copy.
Definition: Tie.hpp:43
This namespace contains all the API of MorphoGraphX.
Definition: Assert.hpp:26
Class used to hold references for the util::tie() function.
Definition: Tie.hpp:32
refpair< T, U > tie(T &x, U &y)
Tie two variables to the values of a pair.
Definition: Tie.hpp:76
refpair(T &x, U &y)
Construct a pair of references to x and y.
Definition: Tie.hpp:37