|
ios::imbuepublic member function
locale imbue ( const locale& loc ); Imbue locale Associates loc to both the stream and its associated stream buffer (if any) as the new locale object to be used with locale-sensitive operations.All callback functions registered with register_callback with imbue_event as its first parameter are called. In fact, this member function calls its inherited homonym ios_base::imbue(loc), and if the stream is associated with a stream buffer, also calls rdbuf()->pubimbue(loc). Parameters
Return valueThe locale object associated with the stream before the call.Example
This code writes a floating point number using the user's prefered locale. For example, in a system configured with a Spanish locale as default, this should write the number using a comma decimal separator:
See also
|