std::filesystem::operator/(std::filesystem::path) - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::filesystem::operator/(std::filesystem::path)

From cppreference.com
< cpp‎ | filesystem‎ | path

Defined in header `<filesystem>` |  |
path operator/( const path& lhs, const path& rhs ); |  | (since C++17)

Concatenates two path components using the preferred directory separator if appropriate (see `operator/=` for details).

Effectively returns path(lhs) /= rhs.

### [edit] Parameters

lhs, rhs | - | paths to concatenate

### [edit] Return value

The result of path concatenation.

### [edit] Exceptions

`noexcept` specification:
noexcept

### [edit] Example

| This section is incomplete Reason: no example

### [edit] See also

appendoperator/= | appends elements to the path with a directory separator (public member function) [edit]

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/filesystem/path/operator_slash&oldid=91679"
Categories:

- unconditionally noexcept
- Todo no example

Hidden categories:

- Pages with unreviewed unconditional noexcept template
- Pages with unreviewed noexcept template