Template for creating an object pair. More...
Public Types | |
typedef T1 | first_type |
Type of the first object in the pair. | |
typedef T2 | second_type |
Type of the second object in the pair. | |
Public Member Functions | |
Pair () | |
Default constructor. | |
Pair (const T1 &rFirst, const T2 &rSecond) | |
Construct with instances. | |
Pair (const Pair< T1, T2 > &rInput) | |
Copy constructor. | |
void | operator= (const Pair< T1, T2 > &rInput) |
Public Attributes | |
T1 | first |
First object in the pair. | |
T2 | second |
Second object in the pair. | |
Template for creating an object pair.
For cases where two objects need to be paired together, this template will easily perform that data pairing.
This is a functional equivalent to the STL template "pair".
T1 Burger::Pair< T1, T2 >::first_type |
T2 Burger::Pair< T1, T2 >::second_type |
|
inline |
|
inline |
Construct with instances.
rFirst | Reference to the first object to copy |
rSecond | Reference to the second object to copy |
|
inline |
Copy constructor.
rInput | Reference to the pair to copy |
|
inline |
T1 Burger::Pair< T1, T2 >::first |
First object in the pair.
T2 Burger::Pair< T1, T2 >::second |
Second object in the pair.