BloombergLP::bslfmt::StandardFormatSpecification::postprocess

Resolve nested width and precision from context arguments.

Synopsis

Declared in <bslfmt_standardformatspecification.h>

template<typename t_FORMAT_CONTEXT>
void
postprocess(t_FORMAT_CONTEXT const& context);

Description

Update the corresponding attributes of this object using the argument values provided by the specified context to fill in the values of nested width or precision parameters if such nested parameters exist and set the status of this object to e_STATE_POSTPROCESSED. By nested format parameters we mean parameters whose value comes from an argument to the formatter function, and not an literal integer value within the format string. In case of an error throw a bsl::format_error exception.

Parameters

NameDescription
contextformat context holding arguments for nested values