std::filesy...path::empty(3)
π 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 π
trueif the path is empty,falseotherwise.
π§ Notes π§
- An empty path can be obtained by calling
clearand 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
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms