protected virtual member function
<streambuf> <iostream>

std::streambuf::imbue

void imbue (const locale& loc);
灌輸區域設定
Virtual function called by the public member function pubimbue to signal derived classes that a new locale is being imbued.

The imbued locale object is guaranteed to not change between calls to this function.

Its default behavior in streambuf is to do nothing, but derived classes can override this behavior to perform specific actions related to the change in locale settings: filebuf overrides this virtual member function (see filebuf::imbue).

引數

loc
正在被 imbued 的 locale 物件。

返回值



資料競爭

不引入資料競爭,但派生類中重寫的版本可能會。

異常安全

無異常保證:此預設定義從不丟擲異常。

另見