#include <bslfmt_formatterspecificationnumericvalue.h>
Component-private type to enable extraction of values held by format contexts during the postprocessing stage of determining the format specification (typically performed by the FormatSpecificationParser). This type exists so that FormatSpecificationParser can update FormatterSpecificationNumericValue to the value contained by a Standard basic_format_arg using the Standard visit_format_arg function.
See bslfmt_formatterspecificationnumericvalue
◆ FormatterSpecificationNumericValue_ArgVisitor()
◆ operator()() [1/4]
| void bslfmt::FormatterSpecificationNumericValue_ArgVisitor::operator() |
( |
bool |
| ) |
const |
|
inline |
Throw an exception of type format_error . This indicates visitation of a bsl::format argument of boolean type, usually resulting from a user error such as calling bsl::format("{:{}}", value, b) where b is bool.
◆ operator()() [2/4]
| void bslfmt::FormatterSpecificationNumericValue_ArgVisitor::operator() |
( |
bsl::monostate |
| ) |
const |
|
inline |
Throw an exception of type format_error . This indicates visitation of an argument with no value, which would indicate a logic error.
- Note
- Note that this would only be called when extracting a value from a basic_format_arg that holds no value, which would normally indicate an incorrect argument type.
◆ operator()() [3/4]
◆ operator()() [4/4]
Throw an exception of type format_error . This indicates visitation of a bsl::format argument of non-integral type, usually resulting from a user error such as calling bsl::format("{:{}}", value, f) where f has a floating point type.
The documentation for this class was generated from the following file: