std::basic_ios::imbue

From cppreference.com
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).

Contents

[edit] Parameters

loc - the new locale

[edit] Return value

The previous locale, as returned by ios_base::imbue(loc).

[edit] Exceptions

(none)

[edit] Example