mp_units::named_unit<Symbol, U, QS>¶
Specialization for a unit with special name valid only for a specific quantity
Synopsis¶
Declared in <mp-units/framework/unit_definitions.h>
template<symbol_text Symbol, Unit auto QS,
/* implementation-defined */ auto PO>
requires(!Symbol.empty()) && (QS._dimension_ == detail::get_associated_quantity(U)._dimension_) &&
detail::is_positive_canonical_unit_mag<U>
struct named_unit<Symbol, U, QS>;
Description¶
The same as the above but additionally limits the usage of this unit to provided quantities.
Non-Member Functions¶
| Name | Description |
|---|---|
cubic | |
equivalent | |
get_quantity_spec | |
get_unit | |
square |
Template Parameters¶
| Name | Description |
|---|---|
| Symbol | a short text representation of the unit |
| Unit | a unit for which we provide a special name |
| QuantitySpec | a specification of a quantity to be measured with this unit |