Return whether alternative formatting was requested.

Synopsis

Declared in <bslfmt_standardformatspecification.h>

constexpr
bool
alternativeFlag() const;

Description

Return a boolean indicating if alternative formatting was requested unless the status is not at least e_STATE_PARSED in which case throw a bsl::format_error exception indicating that error.

Return Value

true if alternative formatting was requested, and false otherwise

Created with MrDocs