[streambuf.locales] (original) (raw)

31 Input/output library [input.output]

31.6 Stream buffers [stream.buffers]

31.6.3 Class template basic_streambuf [streambuf]

31.6.3.3 Public member functions [streambuf.members]

31.6.3.3.1 Locales [streambuf.locales]

locale pubimbue(const locale& loc);

Effects: Callsimbue(loc).

Postconditions: loc == getloc().

Returns: Previous value ofgetloc().

Returns: Ifpubimbue()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 afterpubimbue()has been called but beforepubimbuehas returned (i.e., from within the call ofimbue()) then it returns the previous value.