std::ios_base::event

From cppreference.com
< cpp‎ | io‎ | ios base
 
 
Input/output library
I/O manipulators
C-style I/O
Buffers
(deprecated in C++98)
Streams
Abstractions
File I/O
String I/O
Array I/O
(deprecated in C++98)
(deprecated in C++98)
(deprecated in C++98)
Synchronized Output
Types
Error category interface
(C++11)
 
 
enum event {erase_event, imbue_event, copyfmt_event};

Specifies the event type which is passed to functions registered by register_callback() on specific events. The following constants are defined:

Constant Explanation
erase_event issued on ~ios_base() or basic_ios::copyfmt() (before the copy of members takes place)
imbue_event issued on imbue()
copyfmt_event issued on basic_ios::copyfmt() (after the copy of members takes place, but before the exception settings are copied)

Example