std::basic_filebuf::imbue - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::basic_filebuf::imbue

From cppreference.com
< cpp‎ | io‎ | basic filebuf

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.

### [edit] Parameters

loc | - | the locale to imbue the stream with

### [edit] Return value

(none)

### [edit] Example

| This section is incomplete Reason: no example

### [edit] See also

imbue [virtual] | changes the associated locale (virtual protected member function of `std::basic_streambuf`) [edit]
imbue | sets the locale (public member function of `std::basic_ios`) [edit]

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/io/basic_filebuf/imbue&oldid=57564"
Category:

- Todo no example