Construct one std::shared_future object from another,
so that both the source and the copy refer to the asynchronous result
associated with the source std::shared_future object, if any.
shared_future(shared_future const& other);
- Effects:
Constructs a new
std::shared_futureinstance.- Postconditions:
The asynchronous result associated with
otherprior to the invocation of the constructor is associated with the newly-constructedstd::shared_futureobject andother.- Throws:
Nothing.
Header
#include <future>