mp_units::isfinite¶
Determines if a quantity is finite.
Synopsis¶
Declared in <mp-units/math.h>
template<auto R, typename Rep>
requires requires(Rep v) { isfinite(v); }
#if MP_UNITS_HOSTED
|| requires(Rep v) { std::isfinite(v); }
[[nodiscard]] constexpr bool isfinite(quantity<R, Rep> const& a) noexcept;
Return Value¶
bool: Whether the quantity is finite or not.
Note
The return value should not be discarded.
Parameters¶
| Name | Description |
|---|---|
| a | Quantity to analyze. |