std::numeric_limits::infinity

std::numeric_limits::infinity

static T infinity();
(until C++11)
static constexpr T infinity();
(since C++11)

Returns the special value "positive infinity", as represented by the floating-point type T. Only meaningful if std::numeric_limits<T>::has_infinity == true. In