Assignment operators
Synopses
Declared in <semaphore_grant.h>
Copy assignment is deleted; a grant uniquely owns its slot.
CountingSemaphoreGrant&
operator=(CountingSemaphoreGrant const& other) = delete;
Move‐assigns a grant, releasing any current slot and taking the other's.
CountingSemaphoreGrant&
operator=(CountingSemaphoreGrant&& other) noexcept;
Return Value
A reference to this grant.
Parameters
Name |
Description |
other |
The grant to move from; left empty afterwards. |
Created with MrDocs