STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
__gnu_parallel::__accumulate_binop_reduct< _BinOp > Struct Template Reference

General reduction, using a binary operator. More...

#include <parallel/for_each_selectors.h>

Public Member Functions

 __accumulate_binop_reduct (_BinOp &__b)
 
template<typename _Result , typename _Addend >
_Result operator() (const _Result &__x, const _Addend &__y)
 

Public Attributes

_BinOp & __binop
 

Detailed Description

template<typename _BinOp>
struct __gnu_parallel::__accumulate_binop_reduct< _BinOp >

General reduction, using a binary operator.

Constructor & Destructor Documentation

template<typename _BinOp >
__gnu_parallel::__accumulate_binop_reduct< _BinOp >::__accumulate_binop_reduct ( _BinOp &  __b)
inlineexplicit
340 : __binop(__b) { }
_BinOp & __binop
Definition: for_each_selectors.h:337

Member Function Documentation

template<typename _BinOp >
template<typename _Result , typename _Addend >
_Result __gnu_parallel::__accumulate_binop_reduct< _BinOp >::operator() ( const _Result &  __x,
const _Addend &  __y 
)
inline
345  { return __binop(__x, __y); }
_BinOp & __binop
Definition: for_each_selectors.h:337

Member Data Documentation

template<typename _BinOp >
_BinOp& __gnu_parallel::__accumulate_binop_reduct< _BinOp >::__binop

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