std::coroutine_handle<Promise>::operator bool
From cppreference.com
< C++ | coroutine | coroutine handle
| constexpr explicit operator bool() const noexcept; |
(C++20以降) | |
*this がヌルでないか、つまり *this の値が何らかのコルーチンのプロミスオブジェクトから取得されたものであるかを確認します。 return bool(address()); と同等です。
Promise が std::noop_coroutine_promise の場合、この変換関数は常に true を返します。
[編集] パラメータ
(なし)
[編集] 戻り値
bool(address())、または Promise が std::noop_coroutine_promise の場合は true。
[編集] 関連項目
| 基になるアドレス、すなわちコルーチンをサポートするポインタをエクスポートします。 (public member function) |