[#StdMutex-try_lock] = xref:StdMutex.adoc[StdMutex]::try_lock :relfileprefix: ../ :mrdocs: == Synopsis Declared in `<util/stdmutex.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard, _Clang::__try_acquire_capability__]] bool try_lock() noexcept; ---- == Return Value [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== [.small]#Created with https://www.mrdocs.com[MrDocs]#