cancellation_token_registration-klasse

De cancellation_token_registration klasse vertegenwoordigt een callbackmelding van een cancellation_token. Wanneer de register methode op een cancellation_token wordt gebruikt om een melding te ontvangen van wanneer annulering plaatsvindt, wordt een cancellation_token_registration object geretourneerd als een handle voor de callback, zodat de beller een specifieke callback kan aanvragen, niet meer via de deregister methode.

Syntaxis

class cancellation_token_registration;

Leden

Openbare constructors

Naam Description
cancellation_token_registration
~cancellation_token_registration Destructor

Openbare operators

Naam Description
operator!=
operator=
operator==

Overnamehiërarchie

cancellation_token_registration

Requirements

Koptekst: pplcancellation_token.h

Naamruimte: concurrentie

~cancellation_token_registratie

~cancellation_token_registration();

annuleringstoken_registratie

cancellation_token_registration();

cancellation_token_registration(const cancellation_token_registration& _Src);

cancellation_token_registration(cancellation_token_registration&& _Src);

Parameterwaarden

_Src
De cancellation_token_registration te kopiëren of te verplaatsen.

operator!=

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

Parameterwaarden

_Rhs
De cancellation_token_registration te vergelijken.

Retourwaarde

operator=

cancellation_token_registration& operator= (const cancellation_token_registration& _Src);

cancellation_token_registration& operator= (cancellation_token_registration&& _Src);

Parameterwaarden

_Src
De cancellation_token_registration toe te wijzen.

Retourwaarde

operator==

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

Parameterwaarden

_Rhs
De cancellation_token_registration te vergelijken.

Retourwaarde

Zie ook

concurrentie Namespace