protected virtual member function
<streambuf> <iostream>
void imbue (const locale& loc);
Imbue locale
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).
Parameters
- loc
- The locale object being imbued.
Data races
Introduces no data races, but overriden versions in derived classes may.
Exception safety
No-throw guarantee: this default definition never throws exceptions.