bool is_absolute() const; | (1) | (since C++17) |
bool is_relative() const; | (2) | (since C++17) |
Checks whether the path is absolute or relative. An absolute path is a path that unambiguously identifies the location of a file without reference to an additional starting location. The first version returns true
if the path is absolute, false
otherwise; the second version the other way round.
(none).
true
if the path is absolute, false
otherwise.false
if the path is absolute, true
otherwise.(none).
The path "/"
is absolute on a POSIX OS, but is relative on Windows.
(C++17)(C++17)
| composes an absolute path converts a path to an absolute path replicating OS-specific behavior (function) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/filesystem/path/is_absrel