Specialization for a unit that can be reused by several base quantities
Synopsis
Declared in <mp-units/framework/unit.h>
template<symbol_text Symbol>
requires (!Symbol.empty())
struct named_unit<Symbol>
: /* implementation-defined */
Base Classes
Name |
Description |
/* implementation-defined */ | |
Types
Static Data Members
Name |
Description |
_symbol_ | Unique base unit identifier |
Description
This specialization is used in rare cases where more than one base quantity in a specific system of units uses the same unit. For example in a hypothetical system of natural units where constant for speed of light c = 1
, length and time could be measured in seconds. In such cases system_reference
has to be used to explicitly express such a binding.
Template Parameters
Name |
Description |
Symbol |
a short text representation of the unit |