[#BloombergLP-bdlb-CStringEqualTo] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::CStringEqualTo :relfileprefix: ../../ :mrdocs: This `struct` defines a comparison functor on null‐terminated character strings, enabling them for use 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_cstringequalto.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct CStringEqualTo; ---- == Type Aliases [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdlb/CStringEqualTo/first_argument_type.adoc[`first_argument_type`] | Type of the first argument to the function‐call operator. | xref:BloombergLP/bdlb/CStringEqualTo/result_type.adoc[`result_type`] | Type of the function‐call operator's result. | xref:BloombergLP/bdlb/CStringEqualTo/second_argument_type.adoc[`second_argument_type`] | Type of the second argument to the function‐call operator. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdlb/CStringEqualTo/operator_call.adoc[`operator()`] | Return `true` if the specified `lhs` string has the same (case sensitive) value as the specified `rhs` string, and `false` otherwise. The behavior is undefined unless both `lhs` and `rhs` point to null‐terminated strings. | xref:BloombergLP/bdlb/CStringEqualTo/2conversion.adoc[`operator BloombergLP::bslmf::NestedTraitDeclaration<CStringEqualTo, is_trivially_default_constructible>`] | Declare that this type is trivially copyable. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#