[#bsl-StringComparator] = xref:bsl.adoc[bsl]::StringComparator :relfileprefix: ../ :mrdocs: This class is a functor that provides comparison between two `const char *` strings. == Synopsis Declared in `<bslstp_exfunctional.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct StringComparator; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:bsl/StringComparator/operator_call.adoc[`operator()`] | Return `true` if the specified strings `a` and `b` have the same value, and return `false` otherwise. Two strings have the same value if the result of `std::strcmp` returns 0. | xref:bsl/StringComparator/2conversion.adoc[`operator BloombergLP::bslmf::NestedTraitDeclaration<StringComparator, is_trivially_copyable>`] | Nested trait declaration for `bsl::is_trivially_copyable`. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#