ALib C++ Library
Library Version: 2402 R1
Documentation generated by doxygen
Loading...
Searching...
No Matches
HashMapAccess< TKey, TMapped > Struct Template Reference

Description:

template<typename TKey, typename TMapped>
struct alib::monomem::detail::HashMapAccess< TKey, TMapped >

Helper struct used for implementing HashMap . This type is used as template parameter TAccess of HashTable .

Template Parameters
TKeyThe key type.
TMappedThe type of the mapped objects.

Definition at line 29 of file hashmap.hpp.

#include <hashmap.hpp>

Public Method Index:

TKey & Key (std::pair< TKey, TMapped > &src) const
 
TMapped & Mapped (std::pair< TKey, TMapped > &src) const
 

Method Details:

◆ Key()

template<typename TKey , typename TMapped >
TKey & Key ( std::pair< TKey, TMapped > & src) const
inline

Returns the first element of a std::pair.

Parameters
srcThe value of the element to hash.
Returns
The key-portion of the stored value.

Definition at line 36 of file hashmap.hpp.

◆ Mapped()

template<typename TKey , typename TMapped >
TMapped & Mapped ( std::pair< TKey, TMapped > & src) const
inline

Returns the second element of a std::pair.

Parameters
srcThe 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: