STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Public Types
stapl::promise< R > Class Template Reference

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
 
promiseoperator= (promise const &)=delete
 
 promise (promise &&other) noexcept
 
promiseoperator= (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_idmember_types
 

Detailed Description

template<typename R>
class stapl::promise< R >

Provides a means of setting a result asynchronously, which may be retrieved through an instance of future.

Template Parameters
RReturned object type.
See also
future

The documentation for this class was generated from the following file: