std::coroutine_handle<Promise>:: from_address
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Coroutine traits | ||||
|
(C++20)
|
||||
| Coroutine handle | ||||
|
(C++20)
|
||||
| No-op coroutines | ||||
|
(C++20)
|
||||
|
(C++20)
|
||||
| Trivial awaitables | ||||
|
(C++20)
|
||||
|
(C++20)
|
||||
| Range generators | ||||
|
(C++23)
|
| Member functions | ||||
| Conversion | ||||
| Observers | ||||
| Control | ||||
| Promise access | ||||
| Export/import | ||||
|
coroutine_handle::from_address
|
||||
| Non-member functions | ||||
| Helper classes | ||||
|
static
constexpr
coroutine_handle from_address
(
void
*
addr
)
;
|
(C++20以降) | |
nullポインタ値または別の
coroutine_handle
の基盤アドレスから
coroutine_handle
を作成します。戻り値の基盤アドレスは
addr
です。
addr
が null ポインタ値でもなく、かつ
coroutine_handle
の基底アドレスでもない場合、動作は未定義です。また、
addr
が
std::
coroutine_handle
<
P1
>
の基底アドレスであり、かつ
Promise
と
P1
の両方が
void
ではなく、かつ
P1
が
Promise
と異なる場合も、動作は未定義です。
この関数は特殊化 std:: coroutine_handle < std:: noop_coroutine_promise > に対して宣言されていません。
目次 |
パラメータ
| addr | - | インポートする基盤アドレス |
戻り値
基盤アドレスが addr である std:: coroutine_handle < Promise > 。
注記
addr
が null ポインタ値でない場合、それは何らかのコルーチンを参照する
coroutine_handle
に対して事前に行われた
address()
の呼び出しから取得されなければならない。
例
|
このセクションは不完全です
理由: 例がありません |
関連項目
coroutine_handle
オブジェクトを構築する
(public member function) |
|
|
[static]
|
コルーチンのpromiseオブジェクトから
coroutine_handle
を作成する
(public static member function) |
|
(C++20)
|
再開または破棄時に観測可能な効果を持たないコルーチンハンドルを作成する
(function) |