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 对象。

返回值



数据竞争

不引入数据竞争,但派生类中重写的版本可能会。

异常安全

无异常保证:此默认定义从不抛出异常。

另见