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

Shared memory reduction using atomic counter. Last thread through does serial reduction and returns true, signaling value is ready for consumption. More...

Public Member Functions

 reduction (const size_type nth, operator_type op=operator_type{})
 
size_type size (void) const noexcept
 
bool operator() (const size_type tid, T const &t)
 
bool operator() (const size_type tid, T &&t)
 
get (void)
 

Public Types

using value_type = T
 
using size_type = std::size_t
 
using operator_type = BinaryOperation
 

Detailed Description

template<typename T, typename BinaryOperation>
class stapl::runtime::reduction< T, BinaryOperation >

Shared memory reduction using atomic counter. Last thread through does serial reduction and returns true, signaling value is ready for consumption.


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