std::ios_base:: event
From cppreference.net
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::ios_base
| Member functions | ||||
| Formatting | ||||
| Locales | ||||
| Internal extensible array | ||||
| Miscellaneous | ||||
| Member classes | ||||
| Member types | ||||
|
ios_base::event
|
||||
|
enum
event
{
erase_event, imbue_event, copyfmt_event
}
;
|
||
指定传递给通过 register_callback() 在特定事件上注册的函数的事件类型。定义了以下常量:
| 枚举项 | 含义 |
erase_event
|
在 ~ios_base() 或 basic_ios::copyfmt() 时触发(在成员复制发生之前) |
imbue_event
|
在 imbue() 时触发 |
copyfmt_event
|
在 basic_ios::copyfmt() 时触发(在成员复制发生之后,但异常设置被复制之前) |
示例
|
本节内容不完整
原因:缺少示例 |