[#BloombergLP-bslstl-StringRefImp_CompareUtil-compareEqual-0c] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/StringRefImp_CompareUtil.adoc[StringRefImp_CompareUtil]::compareEqual :relfileprefix: ../../../ :mrdocs: Return `true` if the specified `a` is equal to the specified null‐terminated C‐string `b` and `false` otherwise. Note that this function is more efficient than `compare` for non‐lexicographical equality comparisons. == Synopsis Declared in `<bslstl_stringref.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class CHAR_TYPE> static bool compareEqual( xref:BloombergLP/bslstl/StringRefImp-0c.adoc[StringRefImp<CHAR_TYPE>] const& a, CHAR_TYPE const* b); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#