Named constant definition
Synopsis
Declared in <mp‐units/framework/unit.h>
template<
symbol_text Symbol,
Unit auto U>
requires (!Symbol.empty())
struct named_constant
: ::_base_type_
Description
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
Base Classes
| Name | Description |
|---|---|
|
Types
Static Data Members
Name |
Description |
Unique constant identifier |
Derived Classes
| Name | Description |
|---|---|
Template Parameters
| Name | Description |
|---|---|
Symbol |
a short text representation of the constant |
Unit |
a unit that we use to define a constant |
Created with MrDocs