template <typename CharT>
scn::basic_scan_parse_context class

Format string parsing context, wrapping the format string being parsed, and a counter for argument indexing.

Derived classes

template <typename CharT>
class compile_parse_context
Parse context with extra data used only for compile-time checks.

Constructors, destructors, conversion operators

basic_scan_parse_context(std::basic_string_view<CharT> format, int next_arg_id = 0) explicit constexpr

Public functions

void advance_to(iterator it) constexpr
Advance the beginning of the format string to it
auto begin() const →  auto constexpr noexcept
Returns an iterator pointing to the beginning of the format string.
auto end() const →  auto constexpr noexcept
Returns an iterator pointing to the end of the format string.
auto on_error(const char* msg) →  scan_error

Function documentation

template <typename CharT>
scn::basic_scan_parse_context::basic_scan_parse_context(std::basic_string_view<CharT> format, int next_arg_id = 0) explicit constexpr

Construct a basic_scan_parse_context over a format string format.

template <typename CharT>
scan_error scn::basic_scan_parse_context::on_error(const char* msg)

Fail format string parsing with the message msg. Calling this member function is not a constant expression, causing a compile-time error, if compile-time format string checking is enabled.