A RetroSearch Logo

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

Search Query:

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

public member function

<thread>

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

Swap threads

Swaps the state of the object with that of x.

Parameters
x
thread object whose state is swapped with that of *this.

Return value none

Data races Both x and the object are modified.

Exception safetyNo-throw guarantee: never throws exceptions.

See also
thread::thread
Construct thread (public member function)
thread::operator=
Move-assign thread (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