STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Public Types | Protected Member Functions | Protected Attributes
stapl::runtime::ready_futures< T > Class Template Referencefinal

futures_base implementation for ready values. More...

Public Member Functions

template<typename InputIterator >
 ready_futures (InputIterator first, InputIterator last)
 
size_type size (void) const noexcept final
 
bool valid (const size_type) const final
 
bool valid (void) const final
 
void wait (const size_type) const final
 
void wait (void) const final
 
get (const size_type n) final
 
std::vector< T > get (void) final
 
void set_owned (void) noexcept
 
bool is_owned (void) const noexcept
 
template<typename Function >
void async_then (Function &&f)
 

Public Types

using size_type = typename futures_base< T >::size_type
 
using value_type = T
 
using aggregate_result_type = typename std::conditional< std::is_void< T >::value, void, std::vector< T > >::type
 

Protected Member Functions

bool valid_no_yield (void) const noexcept final
 Returns true if the result has been received.
 
void schedule_continuation (void)
 Schedules a continuation if async_then() was called.
 

Protected Attributes

std::mutex m_mtx
 

Detailed Description

template<typename T>
class stapl::runtime::ready_futures< T >

futures_base implementation for ready values.

Template Parameters
TObject type.
See also
futures

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