MCPcopy Create free account
hub / github.com/LemLib/LemLib / isfinite

Method isfinite

include/fmt/format.h:2508–2512  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2506
2507template <typename T, FMT_ENABLE_IF(std::is_floating_point<T>::value&& has_isfinite<T>::value)>
2508FMT_CONSTEXPR20 bool isfinite(T value) {
2509 constexpr T inf = T(std::numeric_limits<double>::infinity());
2510 if (is_constant_evaluated()) return !detail::isnan(value) && value < inf && value > -inf;
2511 return std::isfinite(value);
2512}
2513
2514template <typename T, FMT_ENABLE_IF(!has_isfinite<T>::value)> FMT_CONSTEXPR bool isfinite(T value) {
2515 T inf = T(std::numeric_limits<double>::infinity());

Callers

nothing calls this directly

Calls 1

is_constant_evaluatedFunction · 0.85

Tested by

no test coverage detected