Parses the fill/align/width 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_fill_align_width(
    std::basic_format_parse_context<std::iter_value_t<It>>& ctx,
    It begin,
    It end,
    Specs& specs,
    fmt_align default_align = fmt_align::none);

Return Value

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

Note

The return value should not be discarded.

Parameters

Name

Description

ctx

the format parse context, used to resolve a dynamic ({}‐style) width

begin

the beginning of the range to parse

end

the end of the range to parse

specs

the specs object to update with the parsed fill, alignment, and width

default_align

the alignment to use when the format spec does not request one

Created with MrDocs