Documentation Home >> Headers >> <jss/experimental_future.hpp> Header >> std::experimental::future >> std::experimental::future Unwrapping Assignment Operator

Replaces the asynchronous state associated with *this with a new asynchronous state that unwraps the provided std::experimental::future object.

future& operator=(future<future<ResultType>>&& other);

Effects:
future& operator=(future<future<ResultType>>&& other){
  future temp(std::move(other));
  swap(temp);
  return *this;
}
Header

#include <experimental/future>

See Also