#include <hashmap.hpp>
template<typename TKey, typename TMapped>
struct aworx::lib::monomem::detail::HashMapAccess< TKey, TMapped >
Helper struct used for implementing HashMap. This type is used as template parameter TAccess of HashTable.
- Template Parameters
-
TKey | The key type. |
TMapped | The type of the mapped objects. |
Definition at line 29 of file hashmap.hpp.
|
TKey & | Key (std::pair< TKey, TMapped > &src) const |
|
TMapped & | Mapped (std::pair< TKey, TMapped > &src) const |
|
◆ Key()
TKey& Key |
( |
std::pair< TKey, TMapped > & |
src | ) |
const |
|
inline |
Returns the first element of a std::pair
.
- Parameters
-
src | The value of the element to hash. |
- Returns
- The key-portion of the stored value.
Definition at line 36 of file hashmap.hpp.
◆ Mapped()
TMapped& Mapped |
( |
std::pair< TKey, TMapped > & |
src | ) |
const |
|
inline |
Returns the second element of a std::pair
.
- Parameters
-
src | The value of the element to hash. |
- Returns
- The mapped-portion of the stored value.
Definition at line 46 of file hashmap.hpp.
The documentation for this struct was generated from the following file: