Hash functor for null-terminated C-strings.
Declared in <bdlb_cstringhash.h>
struct CStringHash;
This struct defines a hash operation for null-terminated character strings enabling them to be used as keys in the standard unordered associative containers such as bsl::unordered_map and bsl::unordered_set. Note that this class is an empty POD type.
| Name | Description |
|---|---|
argument_type | Type of the argument to the function-call operator. |
result_type | Type of the hash code returned by the function-call operator. |
| Name | Description |
|---|---|
operator() | Return a hash code for the specified null-terminated argument. |
operator BloombergLP::bslmf::NestedTraitDeclaration<CStringHash, is_trivially_default_constructible> | Declare that this type is trivially copyable. |