std::experi...th::has_...(3)
πΈ NAME πΈ
okay so bestie, this is the std::experimental::filesystem::path::has_... (3) page, and it lives in the C++ Standard Libary manual β yes, βLibaryβ is the manualβs own spelling, we are keeping it exactly as-is π
. Itβs the whole has_* squad for path, and they all check whether the path contains the corresponding path element. π«Ά
β¨ Synopsis β¨
bool has_root_path() const; (1) (filesystem TS)
bool has_root_name() const; (2) (filesystem TS)
bool has_root_directory() const; (3) (filesystem TS)
bool has_relative_path() const; (4) (filesystem TS)
bool has_parent_path() const; (5) (filesystem TS)
bool has_filename() const; (6) (filesystem TS)
bool has_stem() const; (7) (filesystem TS)
bool has_extension() const; (8) (filesystem TS)
Checks whether the path contains the corresponding path element.
- Checks whether
root_path()is empty. - Checks whether
root_name()is empty. - Checks whether
root_directory()is empty. - Checks whether
relative_path()is empty. - Checks whether
parent_path()is empty. - Checks whether
filename()is empty. - Checks whether
stem()is empty. - Checks whether
extension()is empty.
π Parameters π
(none) β literally zero arguments, bestie. These functions are just looking at the path they already have. β¨
π Return value π
true if the corresponding path is not empty, false otherwise. Thatβs the whole arc. π
π₯ Exceptions π₯
May throw implementation-defined exceptions. So no, it is not out here promising a totally no-drama runtime β implementation-defined exception tea is on the table. π΅
π¦ See also π¦
emptyβ checks if the path is empty (public member function)
π Category π
Noindexed pages
okay thatβs the page, bestie. source/version: http://cppreference.com; date: 2024.06.10 β go check those paths and hydrate πβ¨
π¦ 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