|
ios_base::imbuepublic member function
locale imbue ( const locale& loc ); Imbue locale Associates loc to the stream as the new locale object to be used with locale-sensitive operations.Before that, all callback functions registered through register_callback member with imbue_event as its first parameter are called. 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
|