std::experi...ncurrencyTS)(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

🌸 NAME 🌸

okay so bestie, we're in the C++ Standard Libary manual and this page is std::experimental::packaged_task(concurrencyTS) β€” std::experimental::packaged_task(concurrencyTS) πŸ’–

✨ Synopsis ✨

Defined in header <experimental/future> πŸ¦‹

template< class > class packaged_task; //not defined (1) (concurrency TS)
template< class R, class ...Args >                   (2) (concurrency TS)
class packaged_task<R(Args...)>;

so like, look at (1): it literally says //not defined, okay? not defined, periodt πŸ’€. and (2) is the concurrency TS template with R and Args..., and then there's the actual class line: class packaged_task<R(Args...)>;. the template declarations are marked (concurrency TS), iykyk ✨

std::experimental::concurrency_v1::packaged_task is literally a modified version of std::packaged_task provided by the concurrency TS that works with std::experimental::future. no cap 🫢

The only change from std::packaged_task is that the get_future() member function returns a std::experimental::future<R>. that's the whole plot twist, bestie πŸ’…πŸ”₯


source/version/date sign-off: huge shoutout to http://cppreference.com for the source, version/date 2024.06.10, and this iconic page std::experi...ncurrencyTS)(3) πŸŽ€πŸ’–

πŸ“¦ where this page comes from