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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft