folly::greater_than

Safely compares whether lhs is greater than the compile-time constant rhs.

Synopsis

Declared in <folly/Traits.h>

template<
    typename RHS,
    RHS rhs,
    typename LHS>
bool
greater_than(LHS const lhs);

Return Value

true if lhs is greater than rhs.

Parameters

NameDescription
lhsThe runtime left-hand operand.