[#StdMutex-operator_not]
= xref:StdMutex.adoc[StdMutex]::operator!
:relfileprefix: ../
:mrdocs:

Expose the mutex as a negative capability for Clang Thread Safety Analysis&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:StdMutex.adoc[StdMutex] const&
operator!() const;
----

== Description

A negative requirement uses the EXCLUSIVE&lowbar;LOCKS&lowbar;REQUIRED attribute together with the ! operator to indicate that a mutex should not be held&period;

== Return Value

A const reference to this mutex&period;


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