[#StdMutex-Guard]
= xref:StdMutex.adoc[StdMutex]::Guard
:relfileprefix: ../
:mrdocs:

An annotated version of std&colon;&colon;lock&lowbar;guard for StdMutex&period;

== Synopsis

Declared in `&lt;util&sol;stdmutex&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class &lsqb;&lsqb;scoped&lowbar;lockable&rsqb;&rsqb; Guard
    : public std::lock&lowbar;guard&lt;StdMutex&gt;
----

== Base Classes

[cols="1,4"]
|===
| Name| Description
| `std::lock&lowbar;guard&lt;StdMutex&gt;`
| 
|===

== Type Aliases

[cols="1"]
|===
| Name
| xref:StdMutex/Guard/mutex_type.adoc[`mutex&lowbar;type`] 
|===


== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:StdMutex/Guard/2constructor.adoc[`Guard`]         [.small]#[constructor]#
| Acquire the given mutex for the lifetime of this guard&period;
| xref:StdMutex/Guard/2destructor.adoc[`&#126;Guard`] [.small]#[destructor]#
| Release the held mutex when the guard is destroyed&period;
| xref:StdMutex/Guard/operator_assign.adoc[`operator&equals;`]  [.small]#[deleted]#
| 
|===



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