This page is about the modified version of std::promise with type-erased allocator support provided by the Library Fundamentals TSes. For the version of promise
provided by the concurrency TS supporting the std::future
improvements made by that TS, see std::experimental::concurrency_v1::promise.
template< class R > class promise;
(1) (library fundamentals TS)template< class R > class promise<R&>;
(2) (library fundamentals TS)template<> class promise<void>;
(3) (library fundamentals TS)std::experimental::fundamentals_v1::promise
(and std::experimental::fundamentals_v2::promise
) is a modified version of std::promise provided by the library fundamentals TS with support for type-erased allocators.
std::promise<R>
) [edit] assigns the shared state
std::promise<R>
) [edit] swaps two promise objects
std::promise<R>
) [edit] Getting the result returns a future associated with the promised result
std::promise<R>
) [edit] Setting the result sets the result to specific value
std::promise<R>
) [edit] sets the result to specific value while delivering the notification only at thread exit
std::promise<R>
) [edit] sets the result to indicate an exception
std::promise<R>
) [edit] sets the result to indicate an exception while delivering the notification only at thread exit
std::promise<R>
) [edit]
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