Namespaces
Variants
Actions

std::packaged_task<R(Args...)>::swap

From cppreference.com
< cpp‎ | thread‎ | packaged task
 
 
Concurrency support library
(C++11)
(C++20)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++17)
(C++11)
(C++11)
(C++17)
(C++11)
(C++14)
(C++11)
(C++11)
(C++11)
(C++11)
(C++20)
(C++20)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++26)
(C++26)
(C++26)
(C++26)
(C++11)
(C++20)
(C++11)
(C++11)(deprecated in C++20)
(C++11)(deprecated in C++20)
(C++11)
(C++11)(deprecated in C++26)
 
 
void swap( packaged_task& other ) noexcept;
(since C++11)

Exchanges the shared states and stored tasks of *this and other.

[edit] Parameters

other - packaged task whose state to swap with

[edit] Return value

(none)

[edit] See also

specializes the std::swap algorithm
(function template) [edit]
Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/thread/packaged_task/swap&oldid=161202"

AltStyle によって変換されたページ (->オリジナル) /