std::filesy...path::~path(3)

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

✨ NAME ✨

std::filesystem::path::~path β€” literally the destructor for std::filesystem::path, and yes bestie, that's the whole bit πŸ’…

This one lives in the C++ Standard Libary man pages (that's std::filesy...path::~path(3) if you're searching for it, which you probably are, iykyk πŸ¦‹).


🌸 Synopsis 🌸

~path();  (since C++17)
Ok so real talk: this is a destructor, so you never call it yourself. It just happens to your path object when it's done being the main character. No cap.

πŸŽ€ Description πŸŽ€

Destroys the path object. That's it. That's the whole vibe. 🫢

Like, when a std::filesystem::path object reaches the end of its lifetime β€” scope ends, delete happens, whatever β€” this destructor runs and the object is destroyed. Periodt. ✨


Ok that's genuinely the entire page, bestie β€” some man pages are 40 options long, this one is a single line of lore πŸ’€


Source and date check for you: this came from http://cppreference.com, dated 2024.06.10, and the page you just read is std::filesy...path::~path(3). Love that for us. Mwah πŸ’–πŸŽ€

πŸ“¦ where this page comes from