A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cplusplus.com/reference/mutex/unique_lock/swap/ below:

public member function

<mutex>

std::unique_lock::swap
void swap (unique_lock& x) noexcept;

Swap unique locks

Exchanges contents with x, including both the managed mutex objects and their current owning states.

Parameters
x
Another unique_lock object.

Return value none

Data races Both x and the object are modified.
Neither managed mutex object is accessed by the operation.

Exception safetyNo-throw guarantee: never throws exceptions.

See also
unique_lock::unique_lock
Construct unique_lock (public member function)
unique_lock::operator=
Move-assign unique_lock (public member function)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4