std::experimental::filesystem::path::is_absolute,is_relative

From cppreference.com
< cpplrm; | experimentallrm; | fslrm; | path
Technical specifications
Filesystem library (filesystem TS)
Library fundamentals (library fundamentals TS)
Library fundamentals 2 (library fundamentals 2 TS)
Extensions for parallelism (parallelism TS)
Extensions for parallelism 2 (parallelism TS v2)
Extensions for concurrency (concurrency TS)
Concepts (concepts TS)
Ranges (ranges TS)
Special mathematical functions (special math 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.

Parameters

(none)

Return value

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

Exceptions

(none)

See also

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