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

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

πŸ’– NAME πŸ’–

std::filesystem::path::empty - std::filesystem::path::empty β€” okay so that's the name, and yes it repeats, we love a consistent queen. This page is from the C++ Standard Libary manual, and it's all about the empty-path vibe check.

🌸 Synopsis 🌸

Here's the signature lineup, bestie:

          bool empty() const noexcept;                (since C++17)
                                                      (until C++20)
          [[nodiscard]] bool empty() const noexcept;  (since C++20)

The first signature is since C++17 and until C++20; the [[nodiscard]] version is since C++20. It checks if the path in generic format is empty. Slay.

πŸ¦‹ Parameters πŸ¦‹

There are literally no parameters: (none).

πŸŽ€ Return value πŸŽ€

  • true if the path is empty, false otherwise.

🧚 Notes 🧚

  • An empty path can be obtained by calling clear and by default-constructing a path.
  • It can also be returned by a path decomposition function (such as extension) if the corresponding component is not present in the path.
  • An empty path is classified as a relative path. Periodt.

πŸ‘‘ See also πŸ‘‘

  • constructor β€” constructs a path (public member function)

okay bye bestie πŸ’œ source/version/date: http://cppreference.com, 2024.06.10; page: std::filesy...path::empty(3) ✨

πŸ“¦ where this page comes from