Share via


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;

Parameters

  • _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.

Return Value

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

Requirements

Header: ppl.h

Namespace: concurrency

See Also

Reference

combinable Class

Concepts

Parallel Containers and Objects