This struct wraps the (template parameter) type HASH_ALGORITHM in an interface that satisfies the hash requirements of the C++11 standard.
Declared in <bslh_hash.h>
template<class HASH_ALGORITHM = bslh::DefaultHashAlgorithm>
struct Hash;
| Name | Description |
|---|---|
HashAlgorithm | Make the HASH_ALGORITHM template parameter available to clients. |
result_type | The type of the hash value that will be returned by the function-call operator. |
| Name | Description |
|---|---|
operator() | Return a hash value for the specified key. |
| Name | Description |
|---|---|
Hash<std::filesystem::path> | Specialization of hash for std::filesystem::path values. |
| Name | Description |
|---|---|
hash<basic_string<CHAR_TYPE, CHAR_TRAITS, ALLOCATOR>> | Specialize bsl::hash for strings, including an overload for pointers to allow character arrays to be hashed without converting them first. |
hash | Empty base class for hashing. |