#include <KeyValuePair.h>
Public Member Functions | |
constexpr | KeyValuePair ()=default |
constexpr bool | operator== (const KeyValuePair &) const |
constexpr auto | operator<=> (const KeyValuePair &) const |
Essentially the same as pair<KEY_TYPE,VALUE_TYPE> but with more clearly named data elements (when used for mappings, or other key/value pairs).
Definition at line 35 of file KeyValuePair.h.
|
constexprdefault |
Similar logic for what overloads are available to pair<>, but here we also allow construction from a 'pair<>'.
|
constexpr |
Define operator== in the obvious way key == key and value == value. This method is only defined if BOTH the key and value have a defined operator==
Definition at line 78 of file KeyValuePair.inl.
|
constexpr |
Define operator<=> in the obvious way key <=> key first, and then if equal, compare values. This method is only defined if BOTH the key and value have a defined spaceship operator
Definition at line 72 of file KeyValuePair.inl.