[#CountingSemaphoreGrant-TryAcquire]
= xref:CountingSemaphoreGrant.adoc[CountingSemaphoreGrant]::TryAcquire
:relfileprefix: ../
:mrdocs:

Attempts to acquire the semaphore without blocking&period;

== Synopsis

Declared in `&lt;semaphore&lowbar;grant&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
TryAcquire() noexcept;
----

== Return Value

true if a slot is now held by this grant&period;


[.small]#Created with https://www.mrdocs.com[MrDocs]#
