std::filesystem::filesystem_error::operator=
filesystem_error& operator=( const filesystem_error& other ) noexcept; | (с C++17) |
Присваивает содержимое объекта other. Если у *this и other одинаковый динамический тип std::filesystem::filesystem_error, то std::strcmp(what(), other.what()) == 0 после присваивания.
Параметры
| other | - | другой объект filesystem_error для присваивания |
Возвращаемое значение
*this
Примечания
Типичные реализации хранят объекты path ссылаясь на них из path1() и path2() в хранилище с подсчетом ссылок. В результате *this и other обычно совместно используют свои объекты path после присваивания.
Пример
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/filesystem/filesystem_error/operator%3D