mp_units::check_non_negative::operator()¶
Tells whether v is zero or positive. Returns false for NaN.
Synopsis¶
Declared in <mp-units/overflow_policies.h>
template<Quantity V>
[[nodiscard]] constexpr bool operator()(V const& v) const;
Return Value¶
Note
The return value should not be discarded.
Parameters¶
| Name | Description |
|---|---|
| v | The right operand |
See Also¶
quantity_point::is_within_bounds for the test applied before constructing a point