Skip to content

mp_units::isnan

Determines if a quantity point is a nan.

Synopsis

Declared in <mp-units/math.h>

template<auto R, auto PO, typename Rep>
  requires requires(quantity<R, Rep> q) { isnan(q); }
[[nodiscard]] constexpr bool isnan(quantity_point<R, PO, Rep> const& a) noexcept;

Return Value

bool: Whether the quantity point is a NaN or not.

Note

The return value should not be discarded.

Parameters

NameDescription
aQuantity point to analyze.