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

NameDescription
symbol_text [constructor]Constructors
ascii [deprecated]
empty
portable
unicode [deprecated]
utf8

Data Members

Name
portable_
utf8_

Deduction Guides

Name
symbol_text<N - 1, M - 1>
symbol_text<N - 1, N - 1>
symbol_text<1, 1>
symbol_text<N, N>
symbol_text<N, M>

Friends

NameDescription
mp_units::operator==Equality operator
mp_units::operator<=>Three-way comparison operator
mp_units::operator+Addition operator

Template Parameters

NameDescription
NThe size of a UTF-8 symbol
MThe size of the portable symbol