std::filesy...y::operator=(3)
π std::filesystem::directory_entry::operator= π
okay bestie, you've landed on the std::filesy...y::operator=(3) page from the C++ Standard Libary β yes, that's literally how it's spelled up top, and we are not fixing it. This page is all about std::filesystem::directory_entry::operator=, aka the assignment operator. It's giving "replace my whole contents with yours" energy. π
β¨ NAME β¨
std::filesystem::directory_entry::operator= - std::filesystem::directory_entry::operator=
periodt, it's listed twice like that. iconic, lowkey repetitive, but we move. π«Ά
πΈ Synopsis πΈ
directory_entry& operator=( const directory_entry& other ) =
(1) (since C++17)
default;
directory_entry& operator=( directory_entry&& other ) noexcept =
(2) (since C++17)
default;
So (1) is the copy-assignment operator, (2) is the move-assignment operator β and yes, the move one is marked noexcept. Both are (since C++17), bestie. π¦
It replaces the contents of the directory entry (path and cached attributes, if any) with the contents of other. And both copy- and move-assignment operators for directory_entry are defaulted. no handwritten drama, just defaults slaying. β¨
π Parameters π
otherβ otherdirectory_entry.
β Return value β
*this β yep, that's the whole return value. It returns *this. π
π¦ Example π¦
This section is incomplete. Reason: no example. π
π See also π
assignβ assigns contents (public member function).
ποΈ Category ποΈ
* Todo no example
mwah π β source: http://cppreference.com, version/date: 2024.06.10, manual: std::filesy...y::operator=(3). slay and goodnight β¨
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms