Share via


cancellation_token::operator= Operator

Replaces the contents of one cancellation_token object with another.

cancellation_token& operator=(
   const cancellation_token& _Src
);

cancellation_token& operator=(
   cancellation_token&& _Src
);

Parameters

  • _Src
    The source cancellation_token object.

Remarks

As cancellation_token behaves like a smart pointer, after a copy assignment, this object represents the same internal object as _Src does.

Requirements

Header: ppl.h

Namespace: concurrency

See Also

Reference

cancellation_token Class