I/O manipulators | ||||
Print functions(C++23) | ||||
C-style I/O | ||||
Buffers | ||||
(C++23) | ||||
(C++98/26*) | ||||
(C++20) | ||||
Streams | ||||
Abstractions | ||||
File I/O | ||||
String I/O | ||||
Array I/O | ||||
(C++23) | ||||
(C++23) | ||||
(C++23) | ||||
(C++98/26*) | ||||
(C++98/26*) | ||||
(C++98/26*) | ||||
Synchronized Output | ||||
(C++20) | ||||
Types | ||||
Error category interface | ||||
(C++11) | ||||
(C++11) |
Member functions | ||||
Formatting | ||||
Locales | ||||
ios_base::imbue | ||||
Internal extensible array | ||||
Miscellaneous | ||||
Member classes | ||||
Member types | ||||
std::locale imbue(conststd::locale& loc); | ||
Sets the associated locale of the stream toloc. Before returning, each function, registered byregister_callback() is called withimbue_event
as a parameter.
Contents |
loc | - | new locale to associate the stream to |
The locale object associated with the stream before the operation.
This section is incomplete Reason: no example |
The following behavior-changing defect reports were applied retroactively to previously published C++ standards.
DR | Applied to | Behavior as published | Correct behavior |
---|---|---|---|
LWG 47 | C++98 | the return value was misspecified as the return value ofgetloc() | corrected |
LWG 156 | C++98 | the type ofloc wasconst std::locale | corrected toconst std::locale& |
returns current locale (public member function)[edit] |