Determines if a quantity is a nan.

Synopsis

Declared in <mp‐units/math.h>

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

Return Value

bool: Whether the quantity is a NaN or not.

Parameters

Name

Description

a:

Quantity to analyze.

a

A quantity

Created with MrDocs