std::experimental::filesystem::path::operator= - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::experimental::filesystem::path::operator=

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

path& operator=( const path& p ); | (1) | (filesystem TS)
path& operator=( path&& p ); | (2) | (filesystem TS)
template< class Source > path& operator=( const Source& source ); | (2) | (filesystem TS)

Assigns the contents of another `path` object.

1) Assigns the pathname of `p`.
2) Assigns the pathname of `p`. `p` is in valid, but unspecified state after the call.
3) Assigns the range of the `source`.

| This section is incomplete

### [edit] Parameters

p | - | a path to assign
source | - | a range to assign

### [edit] Return value

*this

### [edit] Exceptions

1) (none)
2)
`noexcept` specification:
noexcept
3) (none)

### [edit] See also

assign | assigns contents (public member function) [edit]

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/experimental/fs/path/operator%3D&oldid=68611"
Categories:

- Todo without reason
- unconditionally noexcept