Documentation Home

Exchanges ownership of their associated mutex locks between two std::shared_lock objects.

void swap(shared_lock& lhs,shared_lock& rhs);

Effects:

lhs.swap(rhs)

Throws:

Nothing

Header

#include <shared_mutex>

See Also