Skip to content

Search topics & cppreference

Search all study topics, concept maps, and 6,587 C++ and C reference pages.

std::filesystem::directory_entry::operator=

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

NotebookLM
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 defaulted.

Parameters

other - other directory_entry

Return value

*this

Example

This section is incomplete
Reason: no example

See also

assigns contents
(public member function)

Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.