greater_equal

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

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

Function object for greater-than-or-equal 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.