Function call operators
Declared in <bslfmt_formatterspecificationnumericvalue.h>
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.
void
operator()(bool) const;
» more...
Throw an exception of type format_error. This indicates visitation of an argument with no value, which would indicate a logic error. 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.
void
operator()(std::monostate) const;
» more...
Update the FormatterSpecificationNumericValue referenced by this visitor by setting its category attribute to e_VALUE and its value to the specified value.
template<class t_TYPE>
void
operator()(t_TYPE value) const
requires bsl::is_integral<t_TYPE>::value;
» more...
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.
template<class t_TYPE>
void
operator()(t_TYPE value) const
requires !bsl::is_integral<t_TYPE>::value;
» more...