[#CountingSemaphoreGrant-operator_assign-09] = xref:CountingSemaphoreGrant.adoc[CountingSemaphoreGrant]::operator= :relfileprefix: ../ :mrdocs: Assignment operators == Synopses Declared in `<semaphore_grant.h>` Copy assignment is deleted; a grant uniquely owns its slot. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:CountingSemaphoreGrant.adoc[CountingSemaphoreGrant]& xref:CountingSemaphoreGrant/operator_assign-0e.adoc[operator=](xref:CountingSemaphoreGrant.adoc[CountingSemaphoreGrant] const& other) = delete; ---- [.small]#xref:CountingSemaphoreGrant/operator_assign-0e.adoc[_» more..._]# Move‐assigns a grant, releasing any current slot and taking the other's. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:CountingSemaphoreGrant.adoc[CountingSemaphoreGrant]& xref:CountingSemaphoreGrant/operator_assign-02.adoc[operator=](xref:CountingSemaphoreGrant.adoc[CountingSemaphoreGrant]&& other) noexcept; ---- [.small]#xref:CountingSemaphoreGrant/operator_assign-02.adoc[_» more..._]# == Return Value A reference to this grant. == Parameters [cols="1,4"] |=== | Name| Description | *other* | The grant to move from; left empty afterwards. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#