isnan overloads

Synopses

Declared in <mp‐units/math.h>

Determines if a quantity is a nan.

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;

Determines if a quantity point is a nan.

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 is a NaN or not.

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

Parameters

Name

Description

a:

Quantity to analyze.

Created with MrDocs