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

From cppreference.com
< cpp‎ | experimental‎ | fs‎ | path
 
 
Technical specifications
Filesystem library (filesystem TS)
Library fundamentals (library fundamentals TS)
Library fundamentals 2 (library fundamentals 2 TS)
Extensions for parallelism (parallelism TS)
Concepts (concepts TS)
Extensions for concurrency (concurrency 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.

Contents

[edit] Parameters

(none)

[edit] Return value

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

[edit] Exceptions

(none)

[edit] See also

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