A type-erased reference to std::locale to avoid the heavy <locale> include.
Declared in <fmt/base.h>
class locale_ref;
| Name | Description |
|---|---|
locale_ref [constructor] | Constructors |
get | Returns the referenced locale cast to Locale. |
operator bool | Returns true if this object refers to a locale. |
| Name | Description |
|---|---|
format | Formats args according to specifications in fmt, using the given locale, and returns the result as a string. |
format | Formats args according to specifications in fmt, using the given locale, with an exotic character type, and returns the result as a string. |
formatted_size | Returns the number of characters produced by formatting args according to specifications in fmt using the given locale, without writing the output anywhere. |
vformat | Formats args according to specifications in fmt, using the given locale, and returns the result as a string. |
vformat | Formats args according to specifications in fmt, using the given locale, with an exotic character type, and returns the result as a string. |