[#bsl-operator_eq-0cf] = xref:bsl.adoc[bsl]::operator== :relfileprefix: ../ :mrdocs: Return `true` if the specified `lhs` and `rhs` pairs have the same value. == Synopsis Declared in `<bslstl_pair.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class T1, class T2> constexpr bool operator==( xref:bsl/pair-0b.adoc[pair<T1, T2>] const& lhs, xref:bsl/pair-0b.adoc[pair<T1, T2>] const& rhs); ---- == Description Return true if the specified `lhs` and `rhs` pair objects have the same value and false otherwise. `lhs` has the same value as `rhs` if `lhs.first == rhs.first` and `lhs.second == rhs.second`. A call to this operator will not compile unless both `T1` and `T2` supply `operator==`. == 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]#