AreFPNaN()

System::TestPredicates::AreFPNaN(T1, T2) function

namespace Details

template<typename T1,typename T2> std::enable_if<std::numeric_limits<T1>::has_quiet_NaN &&std::numeric_limits<T2>::has_quiet_NaN, bool>::type System::TestPredicates::AreFPNaN(T1 lhs, T2 rhs)

Template parameters

ParameterDescription
T1First floating point type.
T2Second floating point type.

Arguments

ParameterTypeDescription
lhsT1First floating point value.
rhsT2Second floating point value.

Return Value

True if both lhs and rhs are floating point values, false otherwise.

Remarks

Checks that two floating point values are both NaNs. Handles situation when non-signalling NaN is supported.

System::TestPredicates::AreFPNaN(T1, T2) function

Checks that two floating point values are both NaNs. Handles situation when non-signalling NaN is not supported.

template<typename T1,typename T2> std::enable_if<!std::numeric_limits<T1>::has_quiet_NaN||!std::numeric_limits<T2>::has_quiet_NaN, bool>::type System::TestPredicates::AreFPNaN(T1 lhs, T2 rhs)

Template parameters

ParameterDescription
T1First floating point type.
T2Second floating point type.

Arguments

ParameterTypeDescription
lhsT1First floating point value.
rhsT2Second floating point value.

Return Value

Always returns false as NaN value is not supported.

See Also