std::basic_ios::~basic_ios(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

std::basic_ios::~basic_ios πŸ’…

okay bestie, welcome to the std::basic_ios::~basic_ios(3) page from the C++ Standard Libary manual β€” yes, that's the manual name, folded in right here near the top so we are not copy-pasting the header line, periodt ✨


✨ NAME ✨

std::basic_ios::~basic_ios β€” literally the destructor named std::basic_ios::~basic_ios. No cap, that's the whole name vibe πŸŽ€

πŸ¦‹ Synopsis πŸ¦‹

virtual ~basic_ios();

It destroys the basic_ios object. Important heads-up: rdbuf is not destroyed πŸ™ˆ

🌸 Notes 🌸

This destructor is virtual because the base class destructor, ios_base::~ios_base, is virtual. That's the reason, bestie β€” it's giving inheritance energy πŸ‘‘

πŸ’€ Defect reports πŸ’€

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

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

okay bye bestie! source/version/date check 🫢: this came from http://cppreference.com, dated 2024.06.10, and it's the std::basic_ios::~basic_ios(3) page πŸ’–

πŸ“¦ where this page comes from