std::basic_streambuf<CharT,Traits>:: pubimbue, std::basic_streambuf<CharT,Traits>:: imbue
From cppreference.net
<
cpp
|
io
|
basic streambuf
C++
Input/output library
| I/O manipulators | ||||
| Print functions (C++23) | ||||
| C-style I/O | ||||
| Buffers | ||||
|
(C++23)
|
||||
|
(
C++98/26*
)
|
||||
|
(C++20)
|
||||
| Streams | ||||
| Abstractions | ||||
| File I/O | ||||
| String I/O | ||||
| Array I/O | ||||
|
(C++23)
|
||||
|
(C++23)
|
||||
|
(C++23)
|
||||
|
(
C++98/26*
)
|
||||
|
(
C++98/26*
)
|
||||
|
(
C++98/26*
)
|
||||
| Synchronized Output | ||||
|
(C++20)
|
||||
| Types | ||||
| Error category interface | ||||
|
(C++11)
|
||||
|
(C++11)
|
std::basic_streambuf
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
std::
locale
pubimbue
(
const
std::
locale
&
loc
)
;
|
(1) | |
|
protected
:
virtual void imbue ( const std:: locale & loc ) ; |
(2) | |
更改关联的区域设置。
1)
将
loc
设置为关联的 locale。调用最派生类的
imbue(loc)
2)
此函数的基类版本不产生任何效果。派生类可重写此函数以获知区域设置的变更情况。派生类可在调用
imbue()
期间缓存区域设置及成员 facet。
目录 |
参数
| loc | - | 要关联的区域设置对象 |
返回值
1)
先前关联的区域设置。
2)
(无)
注释
在
imbue
(
)
调用期间,
getloc()
返回先前的区域设置。
示例
|
本节内容不完整
原因:缺少示例 |
参见
|
获取关联区域设置的副本
(公开成员函数) |