std::experimental::filesystem::path::relative_path - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::experimental::filesystem::path::relative_path

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

path relative_path() const; |  | (filesystem TS)

Returns path relative to the root-path. If *this is an empty path, returns an empty path.

| This section is incomplete Reason: what is root-path?

### [edit] Parameters

(none)

### [edit] Return value

Path relative to the root-path.

### [edit] Exceptions

(none)

### [edit] See also

| This section is incomplete

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

- Todo with reason
- Todo without reason