[ Web Proxy ]
URL:
Viewing: https://ru.cppreference.com/cpp/thread/unique_lock/swap2 [Back]  [Original]

std::swap(std::unique_lock) cppreference.com
cppreference.com

std::swap(std::unique_lock)

cppreference.com

<metanoindex/>

 
C++
(C++20)
(C++20)
(C++11)
(C++20)
/
(C++11)
(C++11)
(C++11)
(C++17)
 
(C++11)
(C++20)
(C++20)
this_thread
(C++11)
(C++11)
(C++11)
(C++11)
(C++20)
(C++11)( C++20)
(C++11)( C++20)
(C++11)( C++20)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)(C++11)(C++11)
(C++11)
(C++11)
(C++11)
(C++20)
(C++20)
(C++11)
(C++11)
(C++11)
(C++11)
 
 
<tbody> </tbody>
template< class Mutex > void swap( unique_lock<Mutex> &lhs, unique_lock<Mutex> &rhs );
std::swap std::unique_lock. lhs rhs. lhs.swap(rhs).
:
Specializes the std::swap algorithm for std::unique_lock. Exchanges the state of lhs with that of rhs. Effectively calls lhs.swap(rhs).
Google.
. .

lhs, rhs
,
:
lock wrappers whose states to swap
Google.
. .

()

noexcept:  
noexcept
  

.

std::unique_lock
:
swaps state with another std::unique_lock
Google.
. .

(public -) []

Web Proxy Viewer  |  New URL  |  Original Page