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

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

πŸ’– std::filesystem::path::clear πŸ’–

okay bestie, welcome to the std::filesystem::path::clear page from the C++ Standard Libary manual. This one is short, sweet, and iconic β€” it’s the little function that clears the stored pathname. ✨


✨ NAME ✨

std::filesystem::path::clear β€” std::filesystem::path::clear. no cap, that’s the name and the one-liner doing the same little dance. πŸŽ€

🌸 Synopsis 🌸

void clear() noexcept;  (since C++17)

so it’s void, it takes no args, and it’s noexcept. it clears the stored pathname. empty() is true after the call. πŸ’…

πŸŽ€ Parameters πŸŽ€

Parameters: (none) β€” bestie, there are literally no parameters. zero. zip. nada. πŸ™ˆ

πŸ¦‹ Return value πŸ¦‹

Return value: (none) β€” it returns nothing, because void said β€œnot today.” periodt. πŸ’€


mwah πŸ’‹ β€” source/version: http://cppreference.com, date: 2024.06.10.

πŸ“¦ where this page comes from