combinable::combinable Constructor

Constructs a new combinable object.

template <
   typename _Function
explicit combinable(
   const combinable& _Copy


The type of the initialization functor object.


A function which will be called to initialize each new thread-private value of the type _Ty. It must support a function call operator with the signature _Ty ().


An existing combinable object to be copied into this one.

The first constructor initializes new elements with the default constructor for the type _Ty.

The second constructor initializes new elements using the initialization functor supplied as the _FnInitialize parameter.

The third constructor is the copy constructor.

Header: ppl.h

Namespace: Concurrency

Community Additions