BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bdlc::HashTableDefaultHash1 Struct Reference

#include <bdlc_hashtable.h>

Public Types

typedef const char * ConstCharPtr
 

Public Member Functions

template<class KEY >
unsigned int operator() (const KEY &key) const
 
unsigned int operator() (const ConstCharPtr &key) const
 
unsigned int operator() (const bsl::string &key) const
 

Detailed Description

Default hash function provided by this component. See component-level documentation for more details. Note that this class is not intended to be used by clients, but the name of this struct must be public so that clients can explicitly specify this struct when default hash function is needed. Note that this functor is implemented using bdlb::HashUtil::hash1.

Member Typedef Documentation

◆ ConstCharPtr

Member Function Documentation

◆ operator()() [1/3]

unsigned int bdlc::HashTableDefaultHash1::operator() ( const bsl::string key) const
inline

◆ operator()() [2/3]

unsigned int bdlc::HashTableDefaultHash1::operator() ( const ConstCharPtr key) const
inline

◆ operator()() [3/3]

template<class KEY >
unsigned int bdlc::HashTableDefaultHash1::operator() ( const KEY &  key) const
inline

Return the result of bdlb::HashUtil::hash1 using key data and key length. If the specified key is not of type const char* or bsl::string, then the footprint and size of the object are used as key data and key length, respectively.


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