Namespaces
Variants
Views
Actions

std::basic_filebuf::imbue

From cppreference.com
< cpp‎ | io‎ | basic filebuf
Revision as of 22:43, 2 November 2012 by P12bot (Talk | contribs)

protected:
virtual void imbue( const std::locale& loc )

Changes the associated locale so that all characters inserted or extracted after this call (and until another call to imbue()) are converted using the std::codecvt facet of loc.

If the old locale's encoding is state-dependent and file is not positioned at the beginning, then the new locale must have the same std::codecvt facet as the one previously imbued.

Contents

Parameters

loc - the locale to imbue the stream with

Return value

(none)

Example

See also

Template:cpp/io/basic streambuf/dcl list imbueTemplate:cpp/io/basic ios/dcl list imbue