protected virtual member function
<streambuf> <iostream>
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 物件。
資料競爭
不引入資料競爭,但派生類中重寫的版本可能會。