[#BloombergLP-bdlb-CStringHash] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::CStringHash :relfileprefix: ../../ :mrdocs: 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. == Synopsis Declared in `<bdlb_cstringhash.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct CStringHash; ---- == Type Aliases [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdlb/CStringHash/argument_type.adoc[`argument_type`] | Type of the argument to the function‐call operator. | xref:BloombergLP/bdlb/CStringHash/result_type.adoc[`result_type`] | Type of the hash code returned by the function‐call operator. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdlb/CStringHash/operator_call.adoc[`operator()`] | Return a hash code generated from the contents of the specified null‐terminated `argument` string. The behavior is undefined unless `argument` points to a null‐terminated string. | xref:BloombergLP/bdlb/CStringHash/2conversion.adoc[`operator BloombergLP::bslmf::NestedTraitDeclaration<CStringHash, is_trivially_default_constructible>`] | Declare that this type is trivially copyable. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#