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

Return `true` if `a` is equal to `b`, and `false` otherwise&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class CHAR&lowbar;TYPE&gt;
static
bool
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);
----

== Description

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;

== Return Value

`true` if `a` equals `b`, and `false` otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *a*
| first string reference to compare
| *b*
| second string reference to compare
|===


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