# std::ios_base::event

> C++ Atlas: `cppatlas.com/w/cpp/io/ios_base/event` | Source: https://en.cppreference.com/w/cpp/io/ios_base/event | Domain: Input/output

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

## Official Specification Summary (cppreference)

```cpp
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

> Note: This section is incomplete Reason: no example

---
Attribution: content from https://en.cppreference.com/w/cpp/io/ios_base/event (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.