ALib C++ Library
Library Version: 2312 R0
Documentation generated by doxygen
Public Methods | List of all members
HashMapAccess< TKey, TMapped > Struct Template Reference

#include <hashmap.hpp>

Class Description

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
TKeyThe key type.
TMappedThe type of the mapped objects.

Definition at line 29 of file hashmap.hpp.

Public Methods

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

Member Function Documentation

◆ Key()

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()

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: