std::coroutine_handle<Promise>::operator bool
ja.cppreference.net より
constexpr explicit operator bool() const noexcept;
|
(C++20 以降) | |
*this が非ヌルかどうかをチェックします。すなわち、*this の値が何らかのコルーチンの promise オブジェクトから取得されたものです。return bool(address()); と同等です。
Promise が std::noop_coroutine_promise の場合、この変換関数は常に true を返します。
パラメータ
(なし)
戻り値
bool
(
address
(
)
)
が返すアドレス、または
true
が
Promise
が
std::noop_coroutine_promise
である場合。
関連項目
|
基盤となるアドレス、すなわちコルーチンを支えるポインタをエクスポートします
(公開メンバー関数) |