A RetroSearch Logo

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

Search Query:

Showing content from https://www.tutorialspoint.com/cpp_standard_library/cpp_thread_swap_non_member.htm below:

C++ Thread Library - Function swap

C++ Thread Library - Function swap Previous Quiz Next Description

It is used to exchanges the state of the thread objects x and y.

Declaration

Following 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 Value

none

Exceptions

No-throw guarantee − never throws exceptions.

Data races

Objects, 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