Construct a std::experimental::promise
object.
promise();
Constructs a std::experimental::promise
instance with
an associated asynchronous result of type ResultType
that is not ready.
An exception of type std::bad_alloc
if the constructor is unable to allocate memory for the asynchronous
result.
#include <experimental/future>