Skip to content

Latest commit

 

History

History
54 lines (39 loc) · 866 Bytes

File metadata and controls

54 lines (39 loc) · 866 Bytes

address

  • coroutine[meta header]
  • std[meta namespace]
  • coroutine_handle[meta class]
  • function[meta id-type]
  • cpp20[meta cpp]
constexpr void* address() const noexcept;

概要

コルーチンハンドルに対応するアドレス値を返す。

戻り値

コルーチンハンドルに対応するアドレス値。

例外

投げない

#include <cassert>
#include <coroutine>

int main()
{
  std::coroutine_handle<> h;
  assert(h.address() == nullptr);
}
  • address()[color ff0000]

出力

バージョン

言語

  • C++20

処理系

関連項目