libGimbal 0.1.0
C17-Based Extended Standard Library and Cross-Language Runtime Framework
Loading...
Searching...
No Matches
gbl::impl::HashMapHasherAdapter< K, V, H > Struct Template Reference

Public Member Functions

 HashMapHasherAdapter (const H &hasher_=H())
 
Hash operator() (const std::pair< K, V > &value) const
 

Data Fields

const Hhasher
 

Detailed Description

template<typename K, typename V, typename H>
struct gbl::impl::HashMapHasherAdapter< K, V, H >

Definition at line 126 of file gimbal_hash_map.hpp.

Constructor & Destructor Documentation

◆ HashMapHasherAdapter()

template<typename K , typename V , typename H >
gbl::impl::HashMapHasherAdapter< K, V, H >::HashMapHasherAdapter ( const H hasher_ = H())
inline

Definition at line 129 of file gimbal_hash_map.hpp.

129 :
130 hasher(hasher_) {}

Member Function Documentation

◆ operator()()

template<typename K , typename V , typename H >
Hash gbl::impl::HashMapHasherAdapter< K, V, H >::operator() ( const std::pair< K, V > &  value) const
inline

Definition at line 132 of file gimbal_hash_map.hpp.

132 {
133 return hasher(value.first);
134 }

Field Documentation

◆ hasher

Definition at line 127 of file gimbal_hash_map.hpp.


The documentation for this struct was generated from the following file: