bsl::operator==

Return true if the specified lhs and rhs pairs have the same value.

Synopsis

Declared in <bslstl_pair.h>

template<
    class T1,
    class T2>
constexpr
bool
operator==(
    pair<T1, T2> const& lhs,
    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

NameDescription
lhspair on the left side of the comparison
rhspair on the right side of the comparison