#include <lemon/bits/extended_pair.h>
int a; char b; typedef extended_pair<int&, int&, char&, char&> ICPair; ICPair p(a, b); // like a real reference to an std::pair<int, char> // but the pair does not exist p.first = 42; p.second = '@';
T1 | The type of first. | |
A1 | The parameter type for first. | |
T2 | The type of second. | |
A2 | The parameter type for second. |
Public Types | |
typedef T1 | first_type |
The type of first. | |
typedef T2 | second_type |
The type of second. | |
Public Member Functions | |
extended_pair () | |
Default constructor. | |
extended_pair (A1 f, A2 s) | |
Constructor. | |
template<class Pair> | |
extended_pair (const Pair &pair) | |
Template constructor. | |
Public Attributes | |
T1 | first |
The first value. | |
T2 | second |
The second value. |
|
The type of first. |
|
The type of second. |
|
Default constructor. It calls the default constructor of first and second. |
|
Constructor. |
|
Template constructor. It copies everything which has |
|
The first value |
|
The second value |