fmt::locale_ref

A type-erased reference to std::locale to avoid the heavy <locale> include.

Synopsis

Declared in <fmt/base.h>

class locale_ref;

Member Functions

NameDescription
locale_ref [constructor]Constructors
get Returns the referenced locale cast to Locale.
operator bool Returns true if this object refers to a locale.

Non-Member Functions

NameDescription
formatFormats args according to specifications in fmt, using the given locale, and returns the result as a string.
formatFormats args according to specifications in fmt, using the given locale, with an exotic character type, and returns the result as a string.
formatted_sizeReturns the number of characters produced by formatting args according to specifications in fmt using the given locale, without writing the output anywhere.
vformatFormats args according to specifications in fmt, using the given locale, and returns the result as a string.
vformatFormats args according to specifications in fmt, using the given locale, with an exotic character type, and returns the result as a string.