Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Constructs a cancellation_token_source object.
cancellation_token_source();
cancellation_token_source(
   const cancellation_token_source& _Src
);
cancellation_token_source(
   cancellation_token_source&& _Src
);
Parameters
- _Src
The source cancellation_token object that copy or move from. 
Remarks
The default constructor creates a new token source with no linked cancellation tokens.
As cancellation_token_source behaves like a smart pointer, after a copy construction, the new object represents the same token source as _Src does.
Requirements
Header: ppl.h
Namespace: concurrency