std::generator::generator(3)

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

πŸŽ€ 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)
  1. The copy-constructor is deleted β€” no copying, not today, not ever. πŸ™ˆ
  2. The move-constructor initializes the underlying coroutine_ with std::exchange(other.coroutine_, {}), and the underlying stack of coroutine handles (active_) with std::exchange(other.active_, nullptr). Note: the iterators previously obtained from other are 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