mp_units::isinf¶
isinf overloads
Synopses¶
Declared in <mp-units/math.h>
Determines if a quantity is infinite.
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;
Determines if a quantity point is infinite.
template<auto R, auto PO, typename Rep>
requires requires(quantity<R, Rep> q) { isinf(q); }
[[nodiscard]] constexpr bool isinf(quantity_point<R, PO, Rep> const& a) noexcept;
Return Value¶
- bool: Whether the quantity is infinite or not.
- bool: Whether the quantity point is infinite or not.
Note
The return value should not be discarded.
Parameters¶
| Name | Description |
|---|---|
| a | Quantity to analyze. |