[#BloombergLP-bslfmt-FormatterIntegralBase]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslfmt.adoc[bslfmt]::FormatterIntegralBase
:relfileprefix: ../../
:mrdocs:

Base class for integral and integral&hyphen;like `bsl&colon;&colon;formatter` specializations&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class t&lowbar;VALUE,
    class t&lowbar;CHAR&gt;
struct FormatterIntegralBase;
----

== Description

This struct is a base class for `bsl&colon;&colon;formatter` specializations for integer types as well as for other types that can be represented as integer (i&period;e&period; `bool`, character and pointer types)&period; This is a private class and should not be used directly&period; The formatting of variables of a certain type is performed using the corresponding classes inherited from this one&period; Accordingly, the auxiliary functions used are declared protected&period;

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslfmt/FormatterIntegralBase/formatPrefix.adoc[`formatPrefix`] 
| Write the output prefix for `value` into `prefixStorage`&period;
| xref:BloombergLP/bslfmt/FormatterIntegralBase/formatValue.adoc[`formatValue`] 
| Write the string representation of `value` into `valueStorage`&period;
| xref:BloombergLP/bslfmt/FormatterIntegralBase/outputValue.adoc[`outputValue`] 
| Copy the formatted prefix and value into `formatContext`&period;
| xref:BloombergLP/bslfmt/FormatterIntegralBase/parse.adoc[`parse`] 
| Parse the specified `parseContext` and return an iterator, pointing to the beginning of the format string&period;
| xref:BloombergLP/bslfmt/FormatterIntegralBase/specification.adoc[`specification`] 
| Return a reference to the specification of this formatter&period;
|===


== Derived Classes

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslfmt/FormatterPointer_Nullptr.adoc[`FormatterPointer&lowbar;Nullptr`] 
| This struct is a specialization of the `bsl&colon;&colon;formatter` template for the `bsl&colon;&colon;nullptr&lowbar;t`&period;
|===


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