BloombergLP::bslfmt::MockParseContext::check_arg_id

Check that the specified argument index is valid and enter manual indexing mode.

Synopsis

Declared in <bslfmt_mockparsecontext.h>

constexpr
void
check_arg_id(size_t id);

Description

Throw bslfmt::format_error if this object has already entered automatic indexing mode, or if id is not less than the number of arguments.

Parameters

NameDescription
idargument index to validate