32 Concurrency support library [thread]

32.10 Futures [futures]

32.10.10 Class template packaged_task [futures.task]

32.10.10.3 Globals [futures.task.nonmembers]

template<class R, class. ArgTypes> void swap(packaged_task<R(ArgTypes..)>& x, packaged_task<R(ArgTypes..)>& y) noexcept;
Effects: As if by x.swap(y).

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant