std::corout...::operator=(3)
π std::coroutine_handle::operator= π
okay so this is the std::corout...::operator=(3) page from the C++ Standard Libary manual, section 3 β yes bestie, we're talking about std::coroutine_handle::operator=, and it's giving assignment-operator main character energy.
πΈ NAME πΈ
std::coroutine_handle::operator= β std::coroutine_handle::operator=
β¨ Synopsis β¨
okay so there are three overloads, and all of them are since C++20. Here's exactly how the page lays them out, line breaks and all β I am not touching them, periodt:
coroutine_handle& operator=( std::nullptr_t ) noexcept;
(1) (since C++20)
coroutine_handle& operator=( const coroutine_handle& other ) =
(2) (since C++20)
default;
coroutine_handle& operator=( coroutine_handle&& other ) = default;
(3) (since C++20)
Replaces the underlying address. That's the whole vibe. π«Ά
- 1) Replaces the underlying address with a null pointer value. After assignment,
*thisdoes not refer to a coroutine. This assignment operator is not declared for specializationstd::coroutine_handle<std::noop_coroutine_promise>. π - 2,3) Replaces the underlying address with the one of
other. Copy and move assignment operators are equivalent to implicitly declared ones. slay.
π Parameters π
otherβ anothercoroutine_handleto assign from.
π Return value π
*this β that's it, that's the return value. π
mwah π source: http://cppreference.com, version date 2024.06.10, and this page is std::corout...::operator=(3). bye bestie! π¦
π¦ 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