std::packaged_task::swap(3)
π NAME π
std::packaged_task::swap β okay so this is literally the page for swapping two packaged tasks, bestie, straight out of the C++ Standard Libary manual. Itβs giving βtiny function, big main character energy.β π
β¨ Synopsis β¨
void swap( packaged_task& other ) noexcept; (since C++11)
This iconic little function exchanges the shared states and stored tasks of *this and other. No cap, thatβs the whole vibe. π¦
π Parameters π
otherβ packaged task whose state to swap with
πΈ Return value πΈ
(none) β literally nothing, bestie. Itβs giving mysterious and empty-handed on purpose. π
π₯ See also π₯
std::swap(std::packaged_task)β specializes thestd::swapalgorithm.(C++11)(function template)β
mwah π β source: http://cppreference.com, version/date: 2024.06.10, page: std::packaged_task::swap(3). Thatβs the whole manual moment, bestie. π«Ά
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms