Provides a means of setting a result asynchronously, which may be retrieved through an instance of future. More...
Public Member Functions | |
| promise (promise const &) noexcept=default | |
| promise & | operator= (promise const &)=delete |
| promise (promise &&other) noexcept | |
| promise & | operator= (promise &&other) noexcept |
| future< R > | get_future (void) |
| Returns a future associated with the promised result. | |
| void | set_value (R const &value) |
| Stores the value and makes the promise ready. | |
| void | set_value (R &&value) |
| Stores the value and makes the promise ready. | |
Public Types | |
| typedef std::tuple< process_id > | member_types |
Provides a means of setting a result asynchronously, which may be retrieved through an instance of future.
| R | Returned object type. |
1.8.13