std::ios_base::~ios_base(3)

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

πŸŽ€ std::ios_base::~ios_base πŸŽ€

okay bestie, welcome to the std::ios_base::~ios_base(3) page from the C++ Standard Libary manual β€” yes, we're doing destructor lore today βœ¨πŸ’…


πŸ’– NAME πŸ’–

std::ios_base::~ios_base β€” std::ios_base::~ios_base; it's the destructor, bestie 🫢

🌸 Synopsis 🌸

virtual ~ios_base();

Destroys the ios_base object. periodt πŸ’…

Before any of the member functions would yield undefined results, it calls callbacks registered by register_callback(), passing erase_event as parameter. Then, deallocates any memory obtained.

🚨 no operations on rdbuf are performed here β€” rdbuf is not destroyed. like, not even a little bit, bestie 😭

🩹 Defect reports 🩹

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

  • DR: LWG 3434
    • Applied to: C++98
    • Behavior as published: the destructor was not required to reclaim memory for iarray and parray
    • Correct behavior: required

mwah πŸ’‹ this page is from http://cppreference.com, dated 2024.06.10 β€” std::ios_base::~ios_base(3) signing off πŸ«ΆπŸ’–

πŸ“¦ where this page comes from