Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::coroutine_handle<Promise>::operator=

      From cppreference.com
      <cpp‎ |coroutine‎ |coroutine handle
       
       
      Utilities library
       
      Coroutine support
      Coroutine traits
      Coroutine handle
      No-op coroutines
      Trivial awaitables
      Range generators
      (C++23)
       
       
      coroutine_handle& operator=(std::nullptr_t)noexcept;
      (1)(since C++20)
      coroutine_handle& operator=(const coroutine_handle& other)=default;
      (2)(since C++20)
      coroutine_handle& operator=( coroutine_handle&& other)=default;
      (3)(since C++20)

      Replaces the underlying address.

      1) Replaces the underlying address with a null pointer value. After assignment,*this does not refer to a coroutine. This assignment operator is not declared for specializationstd::coroutine_handle<std::noop_coroutine_promise>.
      2,3) Replaces the underlying address with the one ofother. Copy and move assignment operators are equivalent to implicitly declared ones.

      [edit]Parameters

      other - anothercoroutine_handle to assign from

      [edit]Return value

      *this

      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/coroutine/coroutine_handle/operator%3D&oldid=162087"

      [8]ページ先頭

      ©2009-2025 Movatter.jp