IsPositive


Check whether argument is positive(>= 0).

You can find more information in comments below.

template<class TYPE>
constexpr bool IsPositive(const TYPE a); // Check whether argument is positive(>= 0)
template<class TYPE>
constexpr bool IsPositive(const TYPE a, const TYPE tolerance = Tolerance<TYPE>); // Check whether argument is positive(>= 0). For float values. Uses absolute comparison
Namespace: ntl
Include: NTL/Core/Utils.h