A RetroSearch Logo

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

Search Query:

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

public member function

<future>

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

Swap packaged_task

Exchanges the shared state and stored task with x .

Parameters
x
Another packaged_task object of the same type (with the same template parameters, Ret and Args...).

Return value none

Data races Both x and the object are modified.

Exception safetyNo-throw guarantee: never throws exceptions.

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