Documentation Home >> Headers >> <jss/experimental_future.hpp> Header >> std::experimental::promise >> std::experimental::promise Default Constructor

Construct a std::experimental::promise object.

promise();

Effects:

Constructs a std::experimental::promise instance with an associated asynchronous result of type ResultType that is not ready.

Throws:

An exception of type std::bad_alloc if the constructor is unable to allocate memory for the asynchronous result.

Header

#include <experimental/future>

See Also