It is used to exchanges the state of the thread objects x and y.
DeclarationFollowing is the declaration for std::thread::swap function.
void swap (thread& x, thread& y) noexcept;C++11
void swap (thread& x, thread& y) noexcept;Parameters
x,y − It is a thread objects.
Return Valuenone
ExceptionsNo-throw guarantee − never throws exceptions.
Data racesObjects, x and y, are modified.
thread.htm
Print Page
Previous
Next
Advertisements
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