class basic_format_parse_context

Declaration

template <typename Char>
class basic_format_parse_context { /* full declaration omitted */ };

Description

\rstParsing context consisting of a format string range being parsed and an argument counter for automatic indexing. You can use the ``format_parse_context`` type alias for ``char`` instead.\endrst

Declared at: third_party/fmt/include/fmt/core.h:655

Templates

Char

Method Overview

  • public constexpr void advance_to(fmt::basic_format_parse_context::iterator it)
  • public constexpr basic_format_parse_context<Char>(basic_string_view<Char> format_str, int next_arg_id = 0)
  • public constexpr auto begin() const noexcept -> fmt::basic_format_parse_context::iterator
  • public constexpr void check_arg_id(int id)
  • public constexpr void check_arg_id(basic_string_view<Char>)
  • public constexpr void check_dynamic_spec(int arg_id)
  • public constexpr auto end() const noexcept -> fmt::basic_format_parse_context::iterator
  • public constexpr auto next_arg_id() -> int

Methods

constexpr void advance_to(
    fmt::basic_format_parse_context::iterator it)

Description

Advances the begin iterator to ``it``.

Declared at: third_party/fmt/include/fmt/core.h:684

Parameters

fmt::basic_format_parse_context::iterator it

constexpr basic_format_parse_context<Char>(
    basic_string_view<Char> format_str,
    int next_arg_id = 0)

Declared at: third_party/fmt/include/fmt/core.h:666

Parameters

basic_string_view<Char> format_str
int next_arg_id = 0

constexpr auto begin() const noexcept
    -> fmt::basic_format_parse_context::iterator

Description

Returns an iterator to the beginning of the format string range being parsed.

Declared at: third_party/fmt/include/fmt/core.h:674

constexpr void check_arg_id(int id)

Description

Reports an error if using the automatic argument indexing; otherwise switches to the manual indexing.

Declared at: third_party/fmt/include/fmt/core.h:707

Parameters

int id

constexpr void check_arg_id(
    basic_string_view<Char>)

Declared at: third_party/fmt/include/fmt/core.h:716

Parameters

basic_string_view<Char>

constexpr void check_dynamic_spec(int arg_id)

Declared at: third_party/fmt/include/fmt/core.h:717

Parameters

int arg_id

constexpr auto end() const noexcept
    -> fmt::basic_format_parse_context::iterator

Description

Returns an iterator past the end of the format string range being parsed.

Declared at: third_party/fmt/include/fmt/core.h:681

constexpr auto next_arg_id() -> int

Description

Reports an error if using the manual argument indexing; otherwise returns the next argument index and switches to the automatic indexing.

Declared at: third_party/fmt/include/fmt/core.h:692