fmt::format_facet

A locale facet that formats values in UTF-8. It is parameterized on the locale to avoid the heavy <locale> include.

Synopsis

Declared in <fmt/format.h>

template<typename Locale>
class format_facet
    : public Locale::facet

Base Classes

NameDescription
Locale::facet

Member Functions

NameDescription
format_facet [constructor]Constructs a format_facet initializing its separator, grouping and decimal point from loc's numeric punctuation.
format_facet [constructor]Constructs a format_facet with an explicit separator, grouping and decimal point.
put Writes val to out, formatted with specs and localized using this facet.

Static Data Members

NameDescription
id The facet id used by Locale to identify this facet type.

Protected Member Functions

NameDescription
do_put [virtual]Writes val to out, formatted with specs and localized using this facet. Overridden for std::locale to perform the actual formatting.

Specializations

NameDescription
format_facet<locale> A locale facet that formats values in UTF-8. It is parameterized on the locale to avoid the heavy <locale> include.