| Localization library | |||||||||||||||||||||||||
| Regular expressions library(C++11) | |||||||||||||||||||||||||
| Formatting library(C++20) | |||||||||||||||||||||||||
| Null-terminated sequence utilities | |||||||||||||||||||||||||
| Byte strings | |||||||||||||||||||||||||
| Multibyte strings | |||||||||||||||||||||||||
| Wide strings | |||||||||||||||||||||||||
| Primitive numeric conversions | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
| Text encoding identifications | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member types | ||||
| Member functions | ||||
(C++26) | ||||
(until C++20) | ||||
| Static member functions | ||||
locale::classic |
staticconst locale& classic(); | ||
Obtains a reference to the C++ locale that implements the classic"C" locale semantics. This locale, unlike the global locale, cannot be altered.
Contents |
none
Returns a reference to the"C" locale.
Some of the standard-required facets, such as the UTF-8/UTF-32 conversion facetstd::codecvt<char32_t,char,std::mbstate_t>, have no equivalents in the"C" locale, but they are nevertheless present in the locale returned bystd::locale::classic(), as in any other locale constructed in a C++ program.
| This section is incomplete Reason: no example |
[static] | changes the global locale (public static member function)[edit] |