Empty base class for hashing. This class, and all explicit and partial specializations of this class, shall conform to the C++11 Hash Requirements (C++11 17.6.3.4, [hash.requirements]). Unless this template is explicitly specialized, it will use the default hash algorithm provided by bslh::Hash<> to supply hash values. In order to hash a user‐defined type using bsl::hash, bsl::hash must be explicitly specialized for the type, or, preferably, hashAppend must be implemented for the type. For more details on hashAppend and bslh::Hash see the component bslh_hash.
Synopsis
Declared in <bslstl_hash.h>
template<class TYPE>
struct hash
: BloombergLP::bslh::Hash<>
Base Classes
Name |
Description |
This struct wraps the (template parameter) type |
Type Aliases
Name |
Description |
Make the |
|
The type of the hash value that will be returned by the function‐call operator. |
Member Functions
Name |
Description |
Function call operators |
Specializations
Name |
Description |
Specialization of |
|
Specialization of |
|
Specialization of |
|
Specialization of |
|
Specialization of |
|
Specialization of |
|
Specialization of |
|
Specialization of |
|
Specialization of |
|
Specialization of |
|
Specialization of |
|
Specialization of |
|
Specialization of |
|
This class provides hashing functionality for constant key types, by delegating to the same function for non‐constant key types. |
|
|
Specialize |
Derived Classes
Name |
Description |
This class provides hashing functionality for constant key types, by delegating to the same function for non‐constant key types. |
Created with MrDocs