30 Input/output library [input.output]

30.6 Stream buffers [stream.buffers]

30.6.3 Class template basic_­streambuf [streambuf] basic_­streambuf public member functions [streambuf.members] Locales [streambuf.locales]

locale pubimbue(const locale& loc);
Postconditions: loc == getloc().
Effects: Calls imbue(loc).
Returns: Previous value of getloc().
locale getloc() const;
Returns: If pubimbue() has ever been called, then the last value of loc supplied, otherwise the current global locale, locale(), in effect at the time of construction.
If called after pubimbue() has been called but before pubimbue has returned (i.e., from within the call of imbue()) then it returns the previous value.