Heterogeneous pair type. More...
#include <Pair.h>
| Public Member Functions | |
| Constructors | |
| constexpr | Pair () | 
| Value constructor by copy. | |
| constexpr | Pair (const T &passFirst, const U &passSecond) | 
| Value constructor by copy. | |
| constexpr | Pair (T &&passFirst, U &&passSecond) | 
| Value constructor by move. | |
| Special member functions | |
| constexpr | Pair (const Pair &other) | 
| Copy constructor. | |
| constexpr | Pair (Pair &&other) noexcept | 
| Move constructor. | |
| constexpr Pair & | operator= (const Pair &other) | 
| Copy assignment. | |
| constexpr Pair & | operator= (Pair &&other) noexcept | 
| Move assignment. | |
| ~Pair ()=default | |
| Copy constructor. | |
| Operators | |
| PURITY_WEAK constexpr bool | operator< (const Pair &other) const | 
| Lexicographical comparison. | |
| PURITY_WEAK constexpr bool | operator> (const Pair &other) const | 
| Lexicographical comparison. | |
| PURITY_WEAK constexpr bool | operator== (const Pair &other) const | 
| Lexicographical comparison. | |
| PURITY_WEAK constexpr bool | operator!= (const Pair &other) const | 
| Lexicographical comparison. | |
| Data Fields | |
| State | |
| T | first | 
| U | second | 
Heterogeneous pair type.
Requires that both types T and U are default-constructible.