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 basic_streambuf is to do nothing, but derived classes can override this behavior to perform specific actions related to the change in locale settings: basic_filebuf overrides this virtual member function (see basic_filebuf::imbue).


The locale object being imbued.

Return Value


Data races

Introduces no data races, but overriden versions in derived classes may.

Exception safety

No-throw guarantee: this default definition never throws exceptions.

See also