Specialization for a unit with special name, valid only for a specific quantity and point origin
Declared in <mp-units/framework/unit_definitions.h>
template<
symbol_text Symbol,
Unit auto U,
/* implementation-defined */ auto QS,
PointOrigin auto PO>
requires (!Symbol.empty()) && (get_dimension(QS) == get_dimension(detail::get_associated_quantity(U))) &&
detail::is_positive_canonical_unit_mag<U>
struct named_unit<Symbol, U, QS, PO>
: ::_base_type_
The same as the above but additionally associates the unit with a point origin.
| Name | Description |
|---|---|
::_base_type_ |
| Name | Description |
|---|---|
_base_type_ | Exposition-only alias naming this specialization's base type. |
| Name | Description |
|---|---|
_point_origin_ | The point origin associated with this unit |
_quantity_spec_ | The quantity this unit is limited to |
_symbol_ | Unique unit identifier |
| 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 |
| PointOrigin | a point origin associated with this unit |