explicit scoped_lock( MutexTypes&... m );
scoped_lock( std::adopt_lock_t, MutexTypes&... m );
scoped_lock( const scoped_lock& ) = delete;
Acquires ownership of the given mutexes
1) If sizeof...(MutexTypes) == 0, does nothing. Otherwise, If sizeof...(MutexTypes) == 1, effectively calls m.lock(). Otherwise, effectively calls std::lock(m...). The behavior is undefined if one of
MutexTypesis not a recursive mutex and the current thread already owns the corresponding argument in m....
2) Acquires ownership of the mutexes m... without attempting to lock any of them. The behavior is undefined unless the current thread owns all of the mutexes in
3) Copy constructor is deleted.
The behavior is undefined if
m is destroyed before the
scoped_lock object is.
|m||-||mutexes to acquire ownership of|
1) Throws any exceptions thrown by m.lock()
2) Throws nothing
 Defect reports
The following behavior-changing defect reports were applied retroactively to previously published C++ standards.
|DR||Applied to||Behavior as published||Correct behavior|
||moved to first|