std::experi...is_relative(3)
π NAME π
okay bestie, this is the std::experi...is_relative(3) page from the C++ Standard Libary manual (spelling straight from the header, iykyk π). The star of the show is:
std::experimental::filesystem::path::is_absolute,is_relative β std::experimental::filesystem::path::is_absolute,is_relative
These are the absolute-versus-relative checker besties for a path, fr fr. β¨
β¨ Synopsis β¨
Two signatures, both const, both from the filesystem TS:
bool is_absolute() const; (1) (filesystem TS)
bool is_relative() const; (2) (filesystem TS)
So what are they doing? They check whether the path is absolute or relative. An absolute path is one where the elements of root_path() are the thing that uniquely identifies a filesystem location. The first version returns true if the path is absolute, false otherwise; the second version is the other way round. π
π Parameters π
(none) β literally no parameters here, bestie. She takes nothing. π
πΈ Return value πΈ
1)βtrueif the path is absolute,falseotherwise.2)βfalseif the path is absolute,trueotherwise.
π¦ Exceptions π¦
May throw implementation-defined exceptions. So like, donβt act surprised if your implementation has opinions. π
π See also π
has_root_pathhas_root_namehas_root_directoryhas_relative_pathβ checks if the corresponding path element is not emptyhas_parent_pathβ (public member function)has_filenamehas_stemhas_extension
π·οΈ Category π·οΈ
- Noindexed pages
source/version/date tea β: http://cppreference.com Β· 2024.06.10 Β· std::experi...is_relative(3). byeee, go check your paths bestie ππ«Ά
π¦ 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