Files
2025-10-25 03:02:53 +03:00

1.5 KiB
Raw Permalink Blame History

[ios.base.locales]

31 Input/output library [input.output]

31.5 Iostreams base classes [iostreams.base]

31.5.2 Class ios_base [ios.base]

31.5.2.4 Functions [ios.base.locales]

🔗

locale imbue(const locale& loc);

1

#

Effects: Calls each registered callback pair(fn, idx) ([ios.base.callback]) as(*fn)(imbue_event, *this, idx) at such a time that a call toios_base::getloc() from withinfn returns the new locale valueloc.

2

#

Postconditions: loc == getloc().

3

#

Returns: The previous value ofgetloc().

🔗

locale getloc() const;

4

#

Returns: If no locale has been imbued, a copy of the global C++ locale,locale(), in effect at the time of construction.

Otherwise, returns the imbued locale, to be used to perform locale-dependent input and output operations.