[#BloombergLP-bslfmt-FormatterSpecificationNumericValue_ArgVisitor-operator_call-0cb]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslfmt.adoc[bslfmt]::xref:BloombergLP/bslfmt/FormatterSpecificationNumericValue_ArgVisitor.adoc[FormatterSpecificationNumericValue&lowbar;ArgVisitor]::operator()
:relfileprefix: ../../../
:mrdocs:

Function call operators

== Synopses

Declared in `&lt;bslfmt&lowbar;formatterspecificationnumericvalue&period;h&gt;`

Throw an exception of type `format&lowbar;error`&period; This indicates visitation of a `bsl&colon;&colon;format` argument of boolean type, usually resulting from a user error such as calling `bsl&colon;&colon;format(&quot;&lcub;&colon;&lcub;&rcub;&rcub;&quot;, value, b)` where `b` is `bool`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bslfmt/FormatterSpecificationNumericValue_ArgVisitor/operator_call-02.adoc[operator()](bool) const;
----

[.small]#xref:BloombergLP/bslfmt/FormatterSpecificationNumericValue_ArgVisitor/operator_call-02.adoc[_» more&period;&period;&period;_]#

Throw an exception of type `format&lowbar;error`&period; This indicates visitation of an argument with no value, which would indicate a logic error&period; Note that this would only be called when extracting a value from a `basic&lowbar;format&lowbar;arg` that holds no value, which would normally indicate an incorrect argument type&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bslfmt/FormatterSpecificationNumericValue_ArgVisitor/operator_call-0e.adoc[operator()](std::monostate) const;
----

[.small]#xref:BloombergLP/bslfmt/FormatterSpecificationNumericValue_ArgVisitor/operator_call-0e.adoc[_» more&period;&period;&period;_]#

Update the `FormatterSpecificationNumericValue` referenced by this visitor by setting its `category` attribute to `e&lowbar;VALUE` and its `value` to the specified `value`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;TYPE&gt;
void
xref:BloombergLP/bslfmt/FormatterSpecificationNumericValue_ArgVisitor/operator_call-0cc.adoc[operator()](t&lowbar;TYPE value) const
requires bsl&colon;&colon;is&lowbar;integral&lt;t&lowbar;TYPE&gt;&colon;&colon;value;
----

[.small]#xref:BloombergLP/bslfmt/FormatterSpecificationNumericValue_ArgVisitor/operator_call-0cc.adoc[_» more&period;&period;&period;_]#

Throw an exception of type `format&lowbar;error`&period; This indicates visitation of a `bsl&colon;&colon;format` argument of non&hyphen;integral type, usually resulting from a user error such as calling `bsl&colon;&colon;format(&quot;&lcub;&colon;&lcub;&rcub;&rcub;&quot;, value, f)` where `f` has a floating point type&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;TYPE&gt;
void
xref:BloombergLP/bslfmt/FormatterSpecificationNumericValue_ArgVisitor/operator_call-08.adoc[operator()](t&lowbar;TYPE value) const
requires !bsl&colon;&colon;is&lowbar;integral&lt;t&lowbar;TYPE&gt;&colon;&colon;value;
----

[.small]#xref:BloombergLP/bslfmt/FormatterSpecificationNumericValue_ArgVisitor/operator_call-08.adoc[_» more&period;&period;&period;_]#


[.small]#Created with https://www.mrdocs.com[MrDocs]#
