Returns the textual symbol of a unit
Declared in <mp-units/framework/unit_text.h>
template<
unit_symbol_formatting fmt = unit_symbol_formatting{},
typename CharT = char,
Unit U>
[[nodiscard]]
consteval
std::basic_string_view<CharT>
unit_symbol(U u);
| Name | Description |
|---|---|
| fmt | the formatting options to use |
| CharT | the character type used to represent the symbol |
| U | the unit to obtain the symbol of |
| Name | Description |
|---|---|
| u | the unit to obtain the symbol of |