Named constant definition
<mp-units/framework/unit.h>template<
symbol_text Symbol,
Unit auto U>
requires (!Symbol.empty())
struct named_constant
: ::_base_type_
It is very similar to named_unit but:
allows negative exponents in the unit definition (TODO )
does not allow the constant to be associated with a quantity_spec
does not allow the constant to be prefixed
| Name | Description |
|---|---|
::_base_type_ |
| Name |
|---|
_base_type_ |
| Name | Description |
|---|---|
_symbol_ | Unique constant identifier |
| Name | Description |
|---|---|
pi
|
| Name | Description |
|---|---|
| Symbol | a short text representation of the constant |
| Unit | a unit that we use to define a constant |