folly::is_positive

Determines whether a value is positive, the same as x > 0.

Synopsis

Declared in <folly/Traits.h>

template<typename T>
constexpr
bool
is_positive(T x);

Return Value

true if x is greater than zero.

Parameters

NameDescription
xThe value to test.