Difference between revisions of "cpp/locale/locale/classic"
From cppreference.com
m (Text replace - "/sidebar" to "/navbar") |
m (r2.7.3) (Robot: Adding de, es, fr, it, ja, pt, ru, zh) |
||
Line 28: | Line 28: | ||
{{dcl list template | cpp/locale/locale/dcl list global}} | {{dcl list template | cpp/locale/locale/dcl list global}} | ||
{{dcl list end}} | {{dcl list end}} | ||
+ | |||
+ | [[de:cpp/locale/locale/classic]] | ||
+ | [[es:cpp/locale/locale/classic]] | ||
+ | [[fr:cpp/locale/locale/classic]] | ||
+ | [[it:cpp/locale/locale/classic]] | ||
+ | [[ja:cpp/locale/locale/classic]] | ||
+ | [[pt:cpp/locale/locale/classic]] | ||
+ | [[ru:cpp/locale/locale/classic]] | ||
+ | [[zh:cpp/locale/locale/classic]] |
Revision as of 19:01, 2 November 2012
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.
Contents |
Parameters
none
Return value
Returns a reference to the "C" locale.
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.
Example
This section is incomplete Reason: no example |