mp_units::possibly_negative¶
Cancels the non_negative mark a child quantity would inherit from its parent
Synopsis¶
Declared in <mp-units/framework/quantity_spec_definitions.h>
struct possibly_negative;
Description¶
It is for a quantity that shares its parent's kind, and so its units, but not its domain:
// a signed vertical coordinate: negative below sea level, yet a length in metres
inline constexpr struct altitude : quantity_spec<length, possibly_negative> {} altitude;
See Also¶
- Systems of Quantities in the User's Guide