Checks whether a quantity specification is tagged as non-negative
Declared in <mp-units/framework/quantity_spec_conversion.h>
template<QuantitySpec Q>
[[nodiscard]]
consteval
bool
is_non_negative(Q q);
true if quantities of Q can never hold a negative value
The return value should not be discarded.
| Name | Description |
|---|---|
| Q | quantity specification type |
| Name | Description |
|---|---|
| q | quantity specification value |