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

Return `true` if the specified `lhs` and `rhs` pairs have the same value&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class T1,
    class T2&gt;
constexpr
bool
operator&equals;&equals;(
    xref:bsl/pair-0b.adoc[pair&lt;T1, T2&gt;] const& lhs,
    xref:bsl/pair-0b.adoc[pair&lt;T1, T2&gt;] const& rhs);
----

== Description

Return true if the specified `lhs` and `rhs` pair objects have the same value and false otherwise&period; `lhs` has the same value as `rhs` if `lhs&period;first &equals;&equals; rhs&period;first` and `lhs&period;second &equals;&equals; rhs&period;second`&period; A call to this operator will not compile unless both `T1` and `T2` supply `operator&equals;&equals;`&period;

== Return Value

`true` if the pairs have the same value, and `false` otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *lhs*
| pair on the left side of the comparison
| *rhs*
| pair on the right side of the comparison
|===


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