std::generator::generator(3)
π NAME π
okay so this is std::generator::generator(3) from the C++ Standard Libary β the NAME is std::generator::generator - std::generator::generator, and yes bestie, thatβs the whole manual name, itβs giving main character energy already. π
β¨ Synopsis β¨
Constructs a generator. Thatβs the assignment, periodt. Both constructor forms are since C++23:
generator( const generator& ) = delete; (1) (since C++23)
generator( generator&& other ) noexcept; (2) (since C++23)
- The copy-constructor is deleted β no copying, not today, not ever. π
- The move-constructor initializes the underlying
coroutine_withstd::exchange(other.coroutine_, {}), and the underlying stack of coroutine handles (active_) withstd::exchange(other.active_, nullptr). Note: the iterators previously obtained fromotherare not invalidated, but become iterators into*this. the way thatβs lowkey wild but also exactly what the page says, fr fr. π¦
πΈ Parameters πΈ
otherβ a generator object to be moved in π
π¦ Example π¦
This section is incomplete Reason: no example
π Category π
- Todo no example
mwah π β source check: http://cppreference.com, date 2024.06.10, and the page is std::generator::generator(3). periodt. π
π¦ 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