std::filesy...::operator=(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸ’… 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