public member function
<regex>

std::regex_traits::imbue

locale_type imbue (locale_type loc);
灌輸區域設定
locregex_traits 物件關聯。

在標準 regex_traits 中,物件在構造時使用全域性區域設定 (locale::global)。 透過呼叫此函式,將分配新的區域設定,並清除物件中快取的任何資訊。

此函式由 regex::imbue 呼叫以灌輸新的區域設定。

引數

loc
locale 物件將被灌輸為 regex_traits 的新區域設定。
locale_type是一種成員型別,在 regex_traits 中定義為標準 locale 型別的別名。

返回值

呼叫之前與 regex_traits 物件關聯的 locale 物件。
locale_type是一種成員型別,在 regex_traits 中定義為標準 locale 型別的別名。

另見