A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://en.cppreference.com/w/cpp/../cpp/experimental/lib_extensions/../concurrency/promise.html below:

std::experimental::promise (concurrency TS) - cppreference.com

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.

template< class R > class promise;

(1) (concurrency TS)

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

(2) (concurrency TS)

template<>          class promise<void>;

(3) (concurrency TS)

std::experimental::concurrency_v1::promise is a modified version of std::promise provided by the concurrency TS that works with std::experimental::future.

The only change from std::promise is that the get_future() member function returns a std::experimental::future.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4