[#BloombergLP-bslstl-StringRefImp_CompareUtil-compareEqual-0b]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/StringRefImp_CompareUtil.adoc[StringRefImp&lowbar;CompareUtil]::compareEqual
:relfileprefix: ../../../
:mrdocs:

`compareEqual` overloads

== Synopses

Declared in `&lt;bslstl&lowbar;stringref&period;h&gt;`

Return `true` if the specified `a` is equal to `b` and `false` otherwise&period; Note that this function is more efficient than `compare` for non&hyphen;lexicographical equality comparisons&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class CHAR&lowbar;TYPE&gt;
static
bool
xref:BloombergLP/bslstl/StringRefImp_CompareUtil/compareEqual-00.adoc[compareEqual](
    xref:BloombergLP/bslstl/StringRefImp-0c.adoc[StringRefImp&lt;CHAR&lowbar;TYPE&gt;] const& a,
    xref:BloombergLP/bslstl/StringRefImp-0c.adoc[StringRefImp&lt;CHAR&lowbar;TYPE&gt;] const& b);
----

[.small]#xref:BloombergLP/bslstl/StringRefImp_CompareUtil/compareEqual-00.adoc[_» more&period;&period;&period;_]#

Return `true` if the specified `a` is equal to the specified null&hyphen;terminated C&hyphen;string `b` and `false` otherwise&period; Note that this function is more efficient than `compare` for non&hyphen;lexicographical equality comparisons&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class CHAR&lowbar;TYPE&gt;
static
bool
xref:BloombergLP/bslstl/StringRefImp_CompareUtil/compareEqual-0c.adoc[compareEqual](
    xref:BloombergLP/bslstl/StringRefImp-0c.adoc[StringRefImp&lt;CHAR&lowbar;TYPE&gt;] const& a,
    CHAR&lowbar;TYPE const* b);
----

[.small]#xref:BloombergLP/bslstl/StringRefImp_CompareUtil/compareEqual-0c.adoc[_» more&period;&period;&period;_]#


[.small]#Created with https://www.mrdocs.com[MrDocs]#
