std::filesystem::directory_entry::operator=
directory_entry& operator=( const directory_entry& other ) = default; | (1) | (начиная с C++17) |
directory_entry& operator=( directory_entry&& other ) noexcept = default; | (2) | (начиная с C++17) |
Заменяет содержимое записи каталога (путь и кэшированные атрибуты, если имеются) содержимым other.
Операторы копирующего и перемещающего присваивания для directory_entry определены по умолчанию.
Параметры
| other | - | другая directory_entry |
Возвращаемое значение
*this
Пример
См. также
| присваивает содержимое (открытая функция-член) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/cpp/filesystem/directory_entry/operator%3D