std::basic_streambuf::pubimbue, std::basic_streambuf::imbue - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::basic_streambuf::pubimbue, std::basic_streambuf::imbue

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

std::locale pubimbue( const std::locale& loc ); | (1) |
protected: virtual void imbue( const std::locale& loc ); | (2) |

Changes the associated locale.

1) Calls `imbue(loc)` of the most derived class

2) The base class version of this function has no effect. The derived classes may override this function in order to be informed about the changes of the locale. The derived class may cache the locale and member facets between calls to `imbue()`.

### [edit] Parameters

loc | - | locale object to associate

### [edit] Return value

1) Previous associated locale.

### [edit] Example

| This section is incomplete Reason: no example

### [edit] See also

getloc | obtains a copy of the associated locale (public member function) [edit]

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/io/basic_streambuf/pubimbue&oldid=67243"
Category:

- Todo no example