Returns the textual symbol of a dimension as a std::basic_string_view.

Synopsis

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

template<
    dimension_symbol_formatting fmt = dimension_symbol_formatting{},
    typename CharT = char,
    Dimension D>
[[nodiscard]]
consteval
std::basic_string_view<CharT>
dimension_symbol(D d);

Return Value

a view of the dimension's symbol

Note

The return value should not be discarded.

Template Parameters

Name

Description

fmt

the formatting options to use

CharT

the character type of the returned symbol

Parameters

Name

Description

d

the dimension to render

Created with MrDocs