public member function
<regex>

std::regex_traits::getloc

locale_type getloc() const;
獲取區域設定
返回與 regex_traits 物件關聯的 locale 物件。

返回的值是在上次呼叫 regex_traits::imbue 中設定的物件,如果未在物件上呼叫 regex_traits::imbue,則返回全域性區域設定 (locale::global)。

此函式由 regex::getloc 呼叫以獲取區域設定。

引數



返回值

regex_traits 物件關聯的 locale 物件。
locale_type是一個成員型別,在 regex_traits 中定義為標準 locale 型別的別名。

另見