Namespaces
Variants
Views
Actions

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 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)
Concepts (concepts TS)
Ranges (ranges 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.

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) [edit]