std::basic_ios<CharT,Traits>::imbue (3) - Linux Manuals
std::basic_ios<CharT,Traits>::imbue: std::basic_ios<CharT,Traits>::imbue
NAME
std::basic_ios<CharT,Traits>::imbue - std::basic_ios<CharT,Traits>::imbue
Synopsis
std::locale imbue( const std::locale& loc );
Replaces the current locale. Effectively calls ios_base::imbue(loc) and if there is an associated stream buffer (rdbuf() != 0), then calls rdbuf()->pubimbue(loc).
Parameters
loc - the new locale
Return value
The previous locale, as returned by ios_base::imbue(loc).
Exceptions
(none)
Example
// Run this code
Output: