std::locale::classic(3)
π std::locale::classic(3) π
okay so this is the C++ Standard Libary manual page for std::locale::classic(3) β yes bestie, we're getting into locale lore today. β¨
πΈ NAME πΈ
std::locale::classic β std::locale::classic (yes, the NAME section is literally her name twice, iconic π
)
β¨ Synopsis β¨
Defined in header <locale>:
static const 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. no cap.
π Parameters π
none. like, zero args, she takes nothing. π«Ά
πΈ Return value πΈ
Returns a reference to the "C" locale. periodt.
π§ Notes π§
Some of the standard-required facets β such as the UTF-8/UTF-32 conversion facet std::codecvt<char32_t, char, std::mbstate_t> β have no equivalents in the "C" locale, but they are nevertheless present in the locale returned by std::locale::classic(), as in any other locale constructed in a C++ program. iykyk π₯
π Example π
This section is incomplete.
Reason: no example.
not me showing up with no example π that is literally what the page says.
π See also π
globalβ changes the global locale; itβs a[static](public static member function).
π Category π
* Todo no example
xoxo, std::locale::classic(3) π from http://cppreference.com, dated 2024.06.10 π
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms