CountingSemaphoreGrant::operator=

Assignment operators

Synopses

Declared in <semaphore_grant.h>

Copy assignment is deleted; a grant uniquely owns its slot.

CountingSemaphoreGrant&
operator=(CountingSemaphoreGrant const& other) = delete;
» more...

Move-assigns a grant, releasing any current slot and taking the other's.

CountingSemaphoreGrant&
operator=(CountingSemaphoreGrant&& other) noexcept;
» more...

Return Value

A reference to this grant.

Parameters

NameDescription
otherThe grant to move from; left empty afterwards.