Share via


cancellation_token_source::cancellation_token_source Constructor

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

See Also

Reference

cancellation_token_source Class