std::basic_streambuf::imbue

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

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

Changes the associated locale.

1) Sets loc as the associated locale. 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().

Parameters

loc - locale object to associate

Return value

1) Previous associated locale.

Example

See also

obtains a copy of the associated locale
(public member function)

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/io/basic_streambuf/pubimbue

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部