# std::basic_ios<CharT,Traits>::~basic_ios

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

Destroys the basic_ios object. rdbuf is not destroyed.

## Official Specification Summary (cppreference)

```cpp
virtual ~basic_ios();
```

Destroys the `basic_ios` object. `rdbuf` is not destroyed.

### Notes

This destructor is `virtual` because the base class destructor, `ios_base::~ios_base` is virtual.

### Defect reports

The following behavior-changing defect reports were applied retroactively to previously published C++ standards.

| DR | Applied to | Behavior as published | Correct behavior |
| --- | --- | --- | --- |
| LWG 53 | C++98 | it was unspecified whether `rdbuf` is destroyed | it is not destroyed |

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