std::experimental::filesystem::path::is_absolute,is_relative - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

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

From cppreference.com
< cpp‎ | experimental‎ | fs‎ | path

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

(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

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

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/experimental/fs/path/is_absrel&oldid=78402"