mp_units::symbol_text¶
A symbol text representation
Synopsis¶
Declared in <mp-units/framework/symbol_text.h>
template<std::size_t N, std::size_t M>
class symbol_text;
Description¶
This class template is responsible for definition and handling of a symbol text representation. In the libary it is used to define symbols of units and prefixes. Each symbol can have two versions: UTF-8 and portable.
Member Functions¶
| Name | Description |
|---|---|
symbol_text [constructor] | Constructors |
ascii [deprecated] | |
empty | |
portable | |
unicode [deprecated] | |
utf8 |
Deduction Guides¶
| Name |
|---|
symbol_text<1, 1> |
symbol_text<N, M> |
symbol_text<N, N> |
symbol_text<N - 1, M - 1> |
symbol_text<N - 1, N - 1> |
Non-Member Functions¶
| Name | Description |
|---|---|
operator+ | Addition operator |
operator<=> | Three-way comparison operator |
operator<=> | Three-way comparison operator |
operator<=> | Three-way comparison operator |
operator== | Equality operator |
operator== | Equality operator |
operator== | Equality operator |
Template Parameters¶
| Name | Description |
|---|---|
| N | The size of a UTF-8 symbol |
| M | The size of the portable symbol |