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

履歴 編集

function
<coroutine>

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

constexpr void* address() const noexcept;

概要

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

戻り値

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

例外

投げない

#include <cassert>
#include <coroutine>

int main()
{
  std::coroutine_handle<> h;
  assert(h.address() == nullptr);
}

出力

バージョン

言語

  • C++20

処理系

関連項目