std::experimental::promise (concurrency TS)

Header: <experimental/future>

This page is about the modified version of std::promise provided by the concurrency TS supporting the std::future improvements made by that TS. For the version of promise with type-erased allocator support provided by the Library Fundamentals TSes, see std::experimental::fundamentals_v2::promise.

# Declarations

template< class R > class promise;

(concurrency TS)

template< class R > class promise<R&>;

(concurrency TS)

template<> class promise<void>;

(concurrency TS)