Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::locale::classic

      From cppreference.com
      <cpp‎ |locale‎ |locale
       
       
       
      Localization library
       
       
      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

      [edit]Parameters

      none

      [edit]Return value

      Returns a reference to the"C" locale.

      [edit]Notes

      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.

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]See also

      [static]
      changes the global locale
      (public static member function)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/locale/locale/classic&oldid=177157"

      [8]ページ先頭

      ©2009-2025 Movatter.jp