mp_units::dimension_symbol_to

Writes the textual symbol of a dimension to an output iterator.

Synopsis

Declared in <mp-units/framework/dimension.h>

template<
    typename CharT = char,
    std::output_iterator<CharT> Out,
    Dimension D>
constexpr
Out
dimension_symbol_to(
    Out out,
    D d,
    dimension_symbol_formatting const& fmt = dimension_symbol_formatting{});

Return Value

an iterator past the last written character

Template Parameters

NameDescription
CharTthe character type of the output symbol

Parameters

NameDescription
outthe output iterator to write to
dthe dimension to render
fmtthe formatting options to use