Value pair binder.
More...
#include <base/collection/Pair.h>
template<class FIRST, class SECOND>
class Pair< FIRST, SECOND >
Value pair binder.
Binder of two values.
- Version
- 1.0
◆ First
template<class FIRST , class SECOND >
The type of the first value.
◆ Second
template<class FIRST , class SECOND >
The type of the second value.
◆ Pair() [1/8]
template<class FIRST , class SECOND >
Initializes a pair with default values.
◆ Pair() [2/8]
template<class FIRST , class SECOND >
Initializes a pair with the specified first value.
- Parameters
-
first | The first value. |
second | The second value. |
◆ Pair() [3/8]
template<class FIRST , class SECOND >
Initializes a pair with the specified values.
- Parameters
-
first | The first value. |
second | The second value. |
◆ Pair() [4/8]
template<class FIRST , class SECOND >
Initializes a pair with the specified values.
- Parameters
-
first | The first value. |
second | The second value. |
◆ Pair() [5/8]
template<class FIRST , class SECOND >
Initializes a pair with the specified values.
- Parameters
-
first | The first value. |
second | The second value. |
◆ Pair() [6/8]
template<class FIRST , class SECOND >
Initializes a pair with the specified values.
- Parameters
-
first | The first value. |
second | The second value. |
◆ Pair() [7/8]
template<class FIRST , class SECOND >
Pair< FIRST, SECOND >::Pair |
( |
const Pair< FIRST, SECOND > & |
copy | ) |
|
|
inline |
Initializes a pair from other pair.
◆ Pair() [8/8]
template<class FIRST , class SECOND >
Pair< FIRST, SECOND >::Pair |
( |
Pair< FIRST, SECOND > && |
move | ) |
|
|
inline |
Initializes a pair from other pair.
◆ getFirst()
template<class FIRST , class SECOND >
const First& Pair< FIRST, SECOND >::getFirst |
( |
| ) |
const |
|
inlinenoexcept |
◆ getSecond()
template<class FIRST , class SECOND >
const Second& Pair< FIRST, SECOND >::getSecond |
( |
| ) |
const |
|
inlinenoexcept |
Returns the second value.
◆ operator!=()
template<class FIRST , class SECOND >
bool Pair< FIRST, SECOND >::operator!= |
( |
const Pair< FIRST, SECOND > & |
compare | ) |
const |
|
inline |
Returns true if this pair is equal to the specified pair.
◆ operator<()
template<class FIRST , class SECOND >
bool Pair< FIRST, SECOND >::operator< |
( |
const Pair< FIRST, SECOND > & |
compare | ) |
const |
|
inline |
Returns true if this pair is less than the specified pair.
◆ operator=() [1/2]
template<class FIRST , class SECOND >
Pair& Pair< FIRST, SECOND >::operator= |
( |
const Pair< FIRST, SECOND > & |
assign | ) |
|
|
inline |
Assignment of pair by pair.
◆ operator=() [2/2]
template<class FIRST , class SECOND >
Pair& Pair< FIRST, SECOND >::operator= |
( |
Pair< FIRST, SECOND > && |
assign | ) |
|
|
inline |
Assignment of pair by pair.
◆ operator==()
template<class FIRST , class SECOND >
bool Pair< FIRST, SECOND >::operator== |
( |
const Pair< FIRST, SECOND > & |
compare | ) |
const |
|
inline |
Returns true if this pair is equal to the specified pair.
◆ setFirst() [1/2]
template<class FIRST , class SECOND >
void Pair< FIRST, SECOND >::setFirst |
( |
const First & |
value | ) |
|
|
inline |
◆ setFirst() [2/2]
template<class FIRST , class SECOND >
void Pair< FIRST, SECOND >::setFirst |
( |
First && |
value | ) |
|
|
inline |
◆ setSecond() [1/2]
template<class FIRST , class SECOND >
void Pair< FIRST, SECOND >::setSecond |
( |
const Second & |
value | ) |
|
|
inline |
◆ setSecond() [2/2]
template<class FIRST , class SECOND >
void Pair< FIRST, SECOND >::setSecond |
( |
Second && |
value | ) |
|
|
inline |
◆ first
template<class FIRST , class SECOND >
◆ second
template<class FIRST , class SECOND >