std::corout...operatorbool(3)
π NAME π
Okay so bestie, this page is std::corout...operatorbool(3) β yes, thatβs the abbreviated header vibe β and it comes from the C++ Standard Libary manual. The actual function is std::coroutine_handle::operatorbool, and itβs here to do a little bool conversion check on your coroutine handle. Iconic. β¨
β¨ Synopsis β¨
constexpr explicit operator bool() const noexcept; (since C++20)
It checks whether *this is non-null, i.e. the value of *this is obtained from the promise object of some coroutine. Equivalent to return bool(address());.
If Promise is std::noop_coroutine_promise, this conversion function always returns true. No cap. π«Ά
π«Ά Parameters π«Ά
Literally (none), bestie. Zero parameters. Not a single tiny argument. π
π Return value π
It returns bool(address()), or true if Promise is std::noop_coroutine_promise. Thatβs the whole vibe. π
π See also π
addressexports the underlying address, i.e. the pointer backing the coroutine (C++20) (public member function).
Okay thatβs the page, bestie! π Source/version and date vibes:http://cppreference.com,2024.06.10, and the footer is still reppingstd::corout...operatorbool(3). Bye cutie, go slay your coroutine handles! π«Άβ¨
π¦ 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