std::shared_lock::operator=

From cppreference.com
< cpp‎ | thread‎ | shared lock
 
 
Thread support library
Threads
(C++11)
this_thread namespace
(C++11)
(C++11)
(C++11)
(C++11)
Mutual exclusion
(C++11)
(C++11)
(C++17)
Generic lock management
(C++11)
(C++11)
(C++14)
(C++11)
(C++11)
(C++11)(C++11)(C++11)
(C++11)
(C++11)
Condition variables
(C++11)
Futures
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
 
 
shared_lock& operator=( shared_lock&& other );
(since C++14)

Move assignment operator. Replaces the contents with those of other using move semantics.

If, prior to this call, *this has an associated mutex ((mutex() returns a non-null pointer) and has acquired ownership of it (owns() returns true), the mutex is unlocked by calling unlock_shared().

After this call, other has no associated mutex.


[edit] Parameters

other - another shared_lock to replace the state with

[edit] Return value

*this

[edit] Exceptions

noexcept specification:  
noexcept