public member function
<<ios> <iostream>

std::ios_base::getloc

locale getloc() const;
獲取當前區域設定
Returns the locale object currently associated with the stream.

引數



返回值

The locale object currently associated with the stream.

資料競爭

訪問流物件。
併發訪問同一個流物件可能導致資料爭用。

異常安全

強保證: 如果丟擲異常,流不會發生任何改變。

另見