Section

std::shared_lock

The class shared_lock is a general-purpose shared mutex ownership wrapper allowing deferred locking, timed locking and transfer of lock ownership. Locking a shared_lock locks the associated shared mutex in shared mode (to lock it in exclusive mode, std::unique_lock can be used).

# Declarations

template< class Mutex >
class shared_lock;

(since C++14)

# Defect reports

DRApplied toBehavior as publishedCorrect behavior
LWG 2981C++17redundant deduction guide from shared_lock was providedremoved