std::shared_lock<Mutex>:: operator=

From cppreference.com
Concurrency support library
Threads
(C++11)
(C++20)
this_thread namespace
(C++11)
(C++11)
Cooperative cancellation
Mutual exclusion
Generic lock management
Condition variables
(C++11)
Semaphores
Latches and Barriers
(C++20)
(C++20)
Futures
(C++11)
(C++11)
(C++11)
Safe Reclamation
Hazard Pointers
Atomic types
(C++11)
(C++20)
Initialization of atomic types
(C++11) (deprecated in C++20)
(C++11) (deprecated in C++20)
Memory ordering
Free functions for atomic operations
Free functions for atomic flags
shared_lock & operator = ( shared_lock && other ) noexcept ;
(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.

Parameters

other - another shared_lock to replace the state with

Return value

* this