folly::constexpr_isnan

Test whether a value is NaN.

Synopsis

Declared in <folly/ConstexprMath.h>

template<typename T>
constexpr
bool
constexpr_isnan(T const t);

Return Value

True if t is not equal to itself, otherwise false.

Parameters

NameDescription
tThe value to test.