std::experi...path::empty(3)

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

πŸ’– NAME πŸ’–

Okay so bestie, welcome to the C++ Standard Libary manual (yes, that’s the spelling in the header 😭), and this page is for std::experimental::filesystem::path::empty β€” and the NAME line literally repeats it: std::experimental::filesystem::path::empty. It’s giving β€œsay it twice so they know you’re iconic.” πŸ’…

✨ Synopsis ✨

bool empty() const;  (filesystem TS)

This one checks if the path is empty. That’s the whole assignment, no cap. 🫢

πŸŽ€ Parameters πŸŽ€

  • (none) β€” literally none, bestie. Not a single parameter. πŸ’–

🌸 Return value 🌸

  • true if the path is empty, false otherwise. Simple as that, and honestly? Slay. ✨

πŸ’… Exceptions πŸ’…

  • noexcept specification: noexcept

πŸ¦‹ See also πŸ¦‹

  • has_root_path
  • has_root_name
  • has_root_directory
  • has_relative_path β€” checks if the corresponding path element is not empty
  • has_parent_path β€” (public member function)
  • has_filename
  • has_stem
  • has_extension

πŸ‘‘ Categories πŸ‘‘

  • Noindexed pages
  • unconditionally noexcept

🌈 Hidden categories 🌈

  • Pages with unreviewed unconditional noexcept template
  • Pages with unreviewed noexcept template
Source/version/date vibes: http://cppreference.com Β· version 2024.06.10 Β· date 2024.06.10 πŸŽ€βœ¨
πŸ“¦ where this page comes from