copy and paste this google map to your website or blog!
Press copy button and paste into your blog or website.
(Please switch to 'HTML' mode when posting into your blog. Examples: WordPress Example, Blogger Example)
std::future - cppreference. com The class template std::future provides a mechanism to access the result of asynchronous operations: An asynchronous operation (created via std::async, std::packaged_task, or std::promise) can provide a std::future object to the creator of that asynchronous operation
std::future lt;T gt;::share - cppreference. com Transfers the shared state of *this, if any, to a std::shared_future object Multiple std::shared_future objects may reference the same shared state, which is not possible with std::future After calling share on a std::future, valid() == false
std::promise lt;R gt;::get_future - cppreference. com Returns a future object associated with the same shared state as *this An exception is thrown if *this has no shared state or get_future has already been called To get multiple "pop" ends of the promise-future communication channel, use std::future::share
std::promise lt;R gt;::set_exception - cppreference. com Atomically stores the exception pointer p into the shared state and makes the state ready The operation behaves as though set_value, set_exception, set_value_at_thread_exit, and set_exception_at_thread_exit acquire a single mutex associated with the promise object while updating the promise object An exception is thrown if there is no shared state or the shared state already stores a value