bsl::equal_to<void>::operator()

Return true if the specified lhs compares equal to the specified rhs using the equality-comparison operator, lhs == rhs. Implemented inline because of all the duplication of std::forward<TYPE1>(lhs) == std::forward<TYPE2>(rhs).

Synopsis

Declared in <bslstl_equalto.h>

template<
    class TYPE1,
    class TYPE2>
[[nodiscard]]
constexpr
decltype(std::forward<TYPE1>(lhs) == std::forward<TYPE2>(rhs))
operator()(
    TYPE1&& lhs,
    TYPE2&& rhs) const noexcept(/* see-below */);

Exception specification

This function is potentially-throwing unless noexcept(std::forward<TYPE1>(lhs) == std::forward<TYPE2>(rhs)).

Return Value

NOTE

The return value should not be discarded.