bsl::equal_to::operator()

Return true if the specified lhs compares equal to the specified rhs using the equality-comparison operator, lhs == rhs.

Synopsis

Declared in <bslstl_equalto.h>

[[nodiscard]]
constexpr
bool
operator()(
    VALUE_TYPE const& lhs,
    VALUE_TYPE const& rhs) const;

Return Value

true if lhs compares equal to rhs, and false otherwise

NOTE

The return value should not be discarded.

Parameters

NameDescription
lhsleft-hand operand to compare for equality
rhsright-hand operand to compare for equality