greater
namespace opentl {
template <typename T = void>
struct greater {
constexpr bool operator()(const T& a, const T& b) const;
};
template <>
struct greater<void> {
template <typename T, typename U>
constexpr bool operator()(const T& a, const U& b) const;
};
}
Function object for greater-than 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.