Template Function TRAP::Math::IsInf(genType)#

Function Documentation#

template<typename genType>
constexpr bool TRAP::Math::IsInf(genType x) noexcept#

Determine whether the paramter is positive or negative infinity.

Parameters:

x – Specifies the value to test for infinity.

Returns:

True if x holds a positive infinity or negative infinity representation in the underlying implementation’s set of floating-point representations. False otherwise, including for implementations with no infinity representations.