std::corout...le::address(3)

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

✨ NAME ✨

std::coroutine_handle::address β€” std::coroutine_handle::address. Bestie, this is the std::corout...le::address(3) page from the C++ Standard Libary manual, and the name is literally the same on both sides. We love a consistent queen. πŸ’…

🌸 Synopsis 🌸

constexpr void* address() const noexcept;  (since C++20)

Returns the underlying address of the coroutine_handle. The return value is non-null if and only if the current value of the coroutine_handle is obtained from a promise object of a coroutine. No cap. ✨

πŸ¦‹ Parameters πŸ¦‹

(none) β€” literally no parameters. Not a single one. 🫢

πŸŽ€ Return value πŸŽ€

The underlying address. That’s it. That’s the whole return value. Iconic behavior. πŸ’–

πŸ’œ Notes πŸ’œ

The return value is non-null for the specialization std::noop_coroutine_handle, because a std::noop_coroutine_handle cannot be created without referring to a no-op coroutine. Periodt. 🌟

🌈 See also 🌈

  • from_address β€” imports a coroutine from a pointer; [static] (C++20) (public static member function).

Source/version and date: http://cppreference.com, 2024.06.10, page std::corout...le::address(3). Bye bestie, go get that underlying address πŸ’–βœ¨

πŸ“¦ where this page comes from