cancellation_token_registration クラス

cancellation_token_registration クラスは、cancellation_token からのコールバック通知を表します。 registercancellation_token メソッドを使用して取り消し発生の通知を受け取るとき、cancellation_token_registration オブジェクトはハンドルとしてコールバックに返されます。したがって、呼び出し元は deregister メソッドを使用して、特定のコールバックが以降行われないように要求できます。

構文

class cancellation_token_registration;

メンバー

パブリック コンストラクター

名前 説明
cancellation_token_registration
~cancellation_token_registration デストラクター

パブリック演算子

名前 説明
operator!=
operator=
operator==

継承階層

cancellation_token_registration

必要条件

ヘッダー: pplcancellation_token.h

名前空間: concurrency

~cancellation_token_registration

~cancellation_token_registration();

cancellation_token_registration

cancellation_token_registration();

cancellation_token_registration(const cancellation_token_registration& _Src);

cancellation_token_registration(cancellation_token_registration&& _Src);

パラメーター

_Src
コピーまたは移動する cancellation_token_registration

operator!=

bool operator!= (const cancellation_token_registration& _Rhs) const;

パラメーター

_Rhs
比較対象の cancellation_token_registration

戻り値

operator=

cancellation_token_registration& operator= (const cancellation_token_registration& _Src);

cancellation_token_registration& operator= (cancellation_token_registration&& _Src);

パラメーター

_Src
割り当てる cancellation_token_registration

戻り値

operator==

bool operator== (const cancellation_token_registration& _Rhs) const;

パラメーター

_Rhs
比較対象の cancellation_token_registration

戻り値

関連項目

コンカレンシー名前空間