mp_units::isinf

Determines if a quantity is infinite.

Synopsis

Declared in <mp-units/math.h>

template<
    auto R,
    typename Rep>
requires requires(Rep v) { isinf(v); }
#if MP_UNITS_HOSTED
           || requires(Rep v) { std::isinf(v); }
[[nodiscard]]
constexpr
bool
isinf(quantity<R, Rep> const& a) noexcept;

Return Value

bool: Whether the quantity is infinite or not.

NOTE

The return value should not be discarded.

Parameters

NameDescription
aQuantity to analyze.