| bool is_absolute() const; |
(1) | (filesystem TS) |
| bool is_relative() const; |
(2) | (filesystem TS) |
Checks whether the path is absolute or relative. An absolute path is such that the elements of root_path() uniquely identify a file system location. The first version returns true if the path is absolute, false otherwise; the second version the other way round.
Parameters
(none)
Return value
true if the path is absolute, false otherwise.false if the path is absolute, true otherwise.Exceptions
May throw implementation-defined exceptions.
See also
| checks if the corresponding path element is not empty (public member function) |
Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.