W3cubDocs

/C++

std::filesystem::directory_entry::operator=

directory_entry& operator=( const directory_entry& other ) = default;
(1) (since C++17)
directory_entry& operator=( directory_entry&& other ) noexcept = default;
(2) (since C++17)

Replaces the contents of the directory entry (path and cached attributes, if any) with the contents of other.

Both copy- and move-assignment operators for directory_entry are are defaulted.

Parameters

other - other directory_entry

Return value

*this.

Example

See also

assigns contents
(public member function)

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/filesystem/directory_entry/operator=