Documentation Home

Construct a std::shared_lock instance that does not own the lock on the supplied mutex.

shared_lock(mutex_type& m,std::defer_lock_t);

Effects:

Constructs a std::shared_lock instance that references the supplied mutex.

Throws:

Nothing.

Postcondition:

this->owns_lock()==false, this->mutex()==&m.

Header

#include <shared_mutex>

See Also