task::operator= Operator

task::operator= Operator

 

Replaces the contents of one task object with another.

task& operator=(
   const task& _Other
);

task& operator=(
   task&& _Other
);

_Other

The source task object.

As task behaves like a smart pointer, after a copy assignment, this task objects represents the same actual task as _Other does.

Requirements

Header: ppltasks.h

Namespace: concurrency

Show:
© 2016 Microsoft