Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::experimental::future<T>::operator=

      From cppreference.com
      <cpp‎ |experimental‎ |future
       
       
       
       
       
      std::experimental::future<T>& operator=(std::experimental::future<T>&& other)noexcept;
      (1)
      std::experimental::future<T>& operator=(conststd::experimental::future<T>& other)= delete;
      (2)

      Assigns the contents of another future object.

      1) Releases any shared state and move-assigns the contents ofother to*this. After the assignment,other.valid()==false andthis->valid() will yield the same value asother.valid() before the assignment.
      2)std::experimental::future is notCopyAssignable.

      [edit]Parameters

      other - astd::experimental::future that will transfer state to*this

      [edit]Return value

      *this

      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/experimental/future/operator%3D&oldid=154966"

      [8]ページ先頭

      ©2009-2026 Movatter.jp