.TH "std::lock_guard< _Mutex >" 3cxx "Thu Feb 16 2023" "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::lock_guard< _Mutex > \- A simple scoped lock type\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .SS "Public Types" .in +1c .ti -1c .RI "typedef _Mutex \fBmutex_type\fP" .br .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBlock_guard\fP (const \fBlock_guard\fP &)=delete" .br .ti -1c .RI "\fBlock_guard\fP (mutex_type &__m)" .br .ti -1c .RI "\fBlock_guard\fP (mutex_type &__m, \fBadopt_lock_t\fP) noexcept" .br .ti -1c .RI "\fBlock_guard\fP & \fBoperator=\fP (const \fBlock_guard\fP &)=delete" .br .in -1c .SH "Detailed Description" .PP .SS "template .br class std::lock_guard< _Mutex >"A simple scoped lock type\&. A lock_guard controls mutex ownership within a scope, releasing ownership in the destructor\&. .PP Definition at line \fB223\fP of file \fBstd_mutex\&.h\fP\&. .SH "Member Typedef Documentation" .PP .SS "template typedef _Mutex \fBstd::lock_guard\fP< _Mutex >::mutex_type" .PP Definition at line \fB226\fP of file \fBstd_mutex\&.h\fP\&. .SH "Constructor & Destructor Documentation" .PP .SS "template \fBstd::lock_guard\fP< _Mutex >::lock_guard (mutex_type & __m)\fC [inline]\fP, \fC [explicit]\fP" .PP Definition at line \fB228\fP of file \fBstd_mutex\&.h\fP\&. .SS "template \fBstd::lock_guard\fP< _Mutex >::lock_guard (mutex_type & __m, \fBadopt_lock_t\fP)\fC [inline]\fP, \fC [noexcept]\fP" .PP Definition at line \fB231\fP of file \fBstd_mutex\&.h\fP\&. .SS "template \fBstd::lock_guard\fP< _Mutex >::~\fBlock_guard\fP ()\fC [inline]\fP" .PP Definition at line \fB234\fP of file \fBstd_mutex\&.h\fP\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.