mp_units::utility::parse_align

Parses the fill and alignment part of a std-format-spec into specs.

Synopsis

Declared in <mp-units/utility/format.h>

template<
    std::forward_iterator It,
    typename Specs>
[[nodiscard]]
constexpr
It
parse_align(
    It begin,
    It end,
    Specs& specs,
    fmt_align default_align = fmt_align::none);

Return Value

an iterator past the parsed fill/align part of the format spec

NOTE

The return value should not be discarded.

Parameters

NameDescription
beginthe beginning of the range to parse; must be non-empty
endthe end of the range to parse
specsthe specs object to update with the parsed fill and alignment
default_alignthe alignment to use when the format spec does not request one