Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

combinable::combine Method

Computes a final value from the set of thread-local sub-computations by calling the supplied combine functor.

template<
   typename _Function
>
_Ty combine(
   _Function_FnCombine
) const;

_Function

The type of the function object that will be invoked to combine two thread-local sub-computations.

_FnCombine

The functor that is used to combine the sub-computations. Its signature is T (T, T) or T (const T&, const T&), and it must be associative and commutative.

The final result of combining all the thread-private sub-computations.

Header: ppl.h

Namespace: concurrency

Show:
© 2015 Microsoft