std::filesy...::operator=(3)
π NAME π
ok so bestie, this is the page for std::filesystem::recursive_directory_iterator::operator= β literally the assignment operator for your recursive directory iterator. two of them, actually. assignment slay. π
(the manual name it lives under is std::filesystem::recursive_directory_iterator::operator= β yes it's the same thing twice, the manpage header just does that, we don't question it, we stan a consistent brand β¨ and yes the original header spells it "C++ Standard Libary", no cap, that's just how it's printed, we're leaving it. iconic typo energy. π)
β¨ SYNOPSIS β¨
two overloads, both since C++17, both = default, both giving main character:
recursive_directory_iterator& operator=( const
recursive_directory_iterator& other ) = default;
recursive_directory_iterator& operator=(
recursive_directory_iterator&& other ) = default;
that's the whole vibe check: one copy-assign, one move-assign, both defaulted. the way that C++17 just dropped these and said "you're welcome" π
πΈ PARAMETERS πΈ
otherβ another directory iterator to assign from. it's the one getting copied/moved into*this. give them a little wave π«Ά
π«Ά RETURN VALUE π«Ά
*this
that's it. that's the return value. it returns itself. main character behavior, honestly π it hands you back the very object you just assigned to, so you can chain stuff and feel powerful.
π EXCEPTIONS π
it may throw implementation-defined exceptions. fr fr, that means whatever your implementation decided is fair game β check your implementation's docs if that matters to you, we're not gonna make up specifics. π
heads up: this section is marked incomplete in the source. so like... there might be more tea here someday, but right now this is what we've got. π
π CATEGORY π
- Todo without reason
yes literally. that's the whole category. no reason given. we love an unbothered queen with zero explanation π
and that's the page!! ngl it's a short one but she's efficient β¨ this manual page was served up by http://cppreference.com, dated 2024.06.10 β go off, cppreference, you absolute icon ππ¦π see you in the next operator= bestie, bye!! π
π₯
π¦ 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