ATLAS Offline Software
Loading...
Searching...
No Matches
CxxUtils::ConcurrentStrToValMap< VALUE, UPDATER >::Hasher Struct Reference

Hash functional for keys. More...

Collaboration diagram for CxxUtils::ConcurrentStrToValMap< VALUE, UPDATER >::Hasher:

Public Member Functions

size_t operator() (const val_t p) const
 Hash function from the underlying representation type.
size_t operator() (const std::string &s) const
 Hash function from a std::string.

Public Attributes

std::hash< std::string > m_hash
 Hash functional.

Detailed Description

template<class VALUE, template< class > class UPDATER>
struct CxxUtils::ConcurrentStrToValMap< VALUE, UPDATER >::Hasher

Hash functional for keys.

The key can be either a std::string or the representation type used by the underlying map.

Definition at line 764 of file ConcurrentStrToValMap.h.

Member Function Documentation

◆ operator()() [1/2]

template<class VALUE, template< class > class UPDATER>
size_t CxxUtils::ConcurrentStrToValMap< VALUE, UPDATER >::Hasher::operator() ( const std::string & s) const

Hash function from a std::string.

◆ operator()() [2/2]

template<class VALUE, template< class > class UPDATER>
size_t CxxUtils::ConcurrentStrToValMap< VALUE, UPDATER >::Hasher::operator() ( const val_t p) const

Hash function from the underlying representation type.

Member Data Documentation

◆ m_hash

template<class VALUE, template< class > class UPDATER>
std::hash<std::string> CxxUtils::ConcurrentStrToValMap< VALUE, UPDATER >::Hasher::m_hash

Hash functional.

Definition at line 771 of file ConcurrentStrToValMap.h.


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