Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 978 Bytes

File metadata and controls

44 lines (30 loc) · 978 Bytes

from_address

  • coroutine[meta header]
  • std[meta namespace]
  • coroutine_handle[meta class]
  • function[meta id-type]
  • cpp20[meta cpp]
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

処理系

関連項目