std::generator::operator=(3)
π std::generator::operator=(3)
okay bestie, this is the std::generator::operator= manual page from the C++ Standard Libary β and yes, "Libary" is literally how the header spells it, I am not fixing it π. We're talking about the assignment operator for std::generator, and it's giving very specific, C++23 energy β¨.
πΈ NAME πΈ
std::generator::operator= - std::generator::operator=
π¦ Synopsis π¦
generator& operator=( generator other ) noexcept; (since C++23)
Replaces the contents of the generator object.
Equivalent to:
std::swap(coroutine_, other.coroutine_);
std::swap(active_, other.active_);
π Parameters π
otherβ another generator to be moved from
π Return value π
*this β that's the whole return vibe, bestie π«Ά
π Complexity π
This section is incomplete
That's literally it β the manpage said what it said, and I'm not out here inventing complexity lore π.
π Notes π
- Iterators previously obtained from
otherare not invalidated β they become iterators into*this. - This assignment operator is technically a copy assignment operator, although
std::generatoris only move assignable.
π Example π
This section is incomplete Reason: no example
no example, bestie, we're just gonna have to cope π.
π·οΈ Categories π·οΈ
- Todo without reason
- Todo no example
okay that's the page, mwah π source: http://cppreference.com, version/date: 2024.06.10, and the footer manual tag is std::generator::operator=(3) π«Άβ¨
π¦ 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