|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
| Shared locking | ||||
| Modifiers | ||||
| Observers | ||||
| Non-member functions | ||||
swap(std::shared_lock) |
template<class Mutex> void swap( shared_lock<Mutex>& lhs, | (since C++14) | |
Specializes thestd::swap algorithm forstd::shared_lock. Exchanges the state oflhs with that ofrhs. Effectively callslhs.swap(rhs).
Contents |
| lhs, rhs | - | lock wrappers whose states to swap |
(none)
| This section is incomplete Reason: no example |
swaps the data members with anothershared_lock(public member function)[edit] |