< cpp‎ | experimental‎ | fs‎ | path
Technical specifications
Filesystem library (filesystem TS)
Library fundamentals (library fundamentals TS)
Library fundamentals 2 (library fundamentals TS v2)
Library fundamentals 3 (library fundamentals TS v3)
Extensions for parallelism (parallelism TS)
Extensions for parallelism 2 (parallelism TS v2)
Extensions for concurrency (concurrency TS)
Extensions for concurrency 2 (concurrency TS v2)
Concepts (concepts TS)
Ranges (ranges TS)
Reflection (reflection TS)
Mathematical special functions (special functions TR)
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.


[edit] Parameters


[edit] Return value

1) true if the path is absolute, false otherwise.
2) false if the path is absolute, true otherwise.

[edit] Exceptions

May throw implementation-defined exceptions.

[edit] See also

checks if the corresponding path element is not empty
(public member function) [edit]