最終更新日時(UTC):
が更新

履歴 編集

function
<coroutine>

std::coroutine_handle::from_address(C++20)

static constexpr coroutine_handle<>
coroutine_handle<>::from_address(void* addr);        // (1)

static constexpr coroutine_handle<Promise>
coroutine_handle<Promise>::from_address(void* addr); // (2)

概要

アドレス値から対応するコルーチンハンドルを取得する。

事前条件

addraddress()呼び出しで得られたアドレス値であること。

戻り値

コルーチンを参照するコルーチンハンドル。

事後条件

from_address(address()) == *this

バージョン

言語

  • C++20

処理系

関連項目