[#bsl-operator_eq-02e]
= xref:bsl.adoc[bsl]::operator&equals;&equals;
:relfileprefix: ../
:mrdocs:

Return whether two strings have the same value&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class CHAR&lowbar;TYPE,
    class CHAR&lowbar;TRAITS,
    class ALLOC&gt;
bool
operator&equals;&equals;(
    xref:bsl/basic_string-0faf.adoc[basic&lowbar;string&lt;CHAR&lowbar;TYPE, CHAR&lowbar;TRAITS, ALLOC&gt;] const& lhs,
    CHAR&lowbar;TYPE const* rhs);
----

== Description

Return `true` if the specified `lhs` string has the same value as the specified `rhs` string, and `false` otherwise&period; Two strings have the same value if they have the same length, and the characters at each respective position have the same value according to `CHAR&lowbar;TRAITS&colon;&colon;eq`&period;

== Return Value

`true` if the strings compare equal

== Parameters

[cols="1,4"]
|===
| Name| Description
| *lhs*
| left&hyphen;hand operand
| *rhs*
| right&hyphen;hand operand
|===


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