• Class / Function / Type

      std::
    • Header file

      <>
    • Other / All

    最終更新日時(UTC):
    が更新

    履歴 編集

    function
    <regex>

    std::regex_traits::imbue

    locale_type imbue(locale_type loc);
    

    概要

    ロケールを設定する。

    効果

    パラメータlocのコピーを*thisに保持する。

    戻り値

    この関数を呼び出す前に設定されているロケールオブジェクトがある場合は、そのコピーを返す。そうでない場合、グローバルロケールオブジェクトのコピーを返す。

    #include <regex>
    
    int main()
    {
      std::regex_traits<char> traits;
    
      std::locale loc("ja_JP.UTF-8");
      traits.imbue(loc);
    }
    

    出力

    バージョン

    言語

    • C++11

    処理系

    • Clang: 3.0 , 3.1 , 3.2 , 3.3 , 3.4 , 3.5 , 3.6
    • GCC: 4.9.0 , 4.9.1 , 4.9.2 , 5.0.0
    • ICC: ??
    • Visual C++: ??