[#fmt-formatter-03]
= xref:fmt.adoc[fmt]::formatter&lt;T&gt;
:relfileprefix: ../
:mrdocs:

`fmt&colon;&colon;format` support for any type convertible to `rich&lowbar;error&lowbar;base&ast;`&period;

== Synopsis

Declared in `&lt;folly&sol;lang&sol;Strong&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename T&gt;
requires std&colon;&colon;is&lowbar;convertible&lowbar;v&lt;T&ast;, folly&colon;&colon;rich&lowbar;error&lowbar;base&ast;&gt;
struct formatter&lt;T&gt;
    : xref:fmt/formatter-063.adoc[fmt::formatter&lt;folly::rich&lowbar;error&lowbar;base&gt;]
    , fmt::formatter&lt;T::underlying&lowbar;type&gt;
----

== Base Classes

[cols="1,4"]
|===
| Name| Description
| `xref:fmt/formatter-063.adoc[fmt::formatter&lt;folly::rich&lowbar;error&lowbar;base&gt;]`
| `fmt&colon;&colon;format` support for `rich&lowbar;error&lowbar;base` and derived classes&period;
| `fmt::formatter&lt;T::underlying&lowbar;type&gt;`
| 
|===

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:fmt/formatter-03/format-0c.adoc[`format`] 
| `format` overloads
| xref:fmt/formatter-03/parse-0b.adoc[`parse`] 
| Parses the format spec (align&sol;fill&sol;padding is not yet supported)&period;
|===



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