equal_to

namespace opentl {
    template <typename T = void>
    struct equal_to {
        constexpr bool operator()(const T& a, const T& b) const;
    };

    template <>
    struct equal_to<void> {
        template <typename T, typename U>
        constexpr bool operator()(const T& a, const U& b) const;
    };
}

Function object for equality comparison.

Template Parameters

Name Description
T The value type; void selects the transparent specialization.

Member Functions

Name Return Type Description
operator() bool Compares two values.

Parameters

Name Description
a The first value.
b The second value.

Return Value

true if a == b.