std::experi...ncurrencyTS)(3)
Okay bestie, welcome to the std::experi...ncurrencyTS)(3) page from the C++ Standard Libary manual β yes, manual name folded in near the top, and yes weβre keeping the typo because character-for-character honesty is the vibe. π
π NAME π
std::experimental::promise(concurrencyTS) β thatβs the name. And because the original repeats it, here it is again: std::experimental::promise(concurrencyTS). Periodt. β¨
π Synopsis π
Itβs defined in header <experimental/future> β no cap, thatβs the literal path. π
template< class R > class promise; (1) (concurrency TS)
template< class R > class promise<R&>; (2) (concurrency TS)
template<> class promise<void>; (3) (concurrency TS)
Okay so std::experimental::concurrency_v1::promise is a modified version of std::promise β itβs provided by the concurrency TS, and it works with std::experimental::future. π¦
The only change from std::promise is that the get_future() member function returns a std::experimental::future. Thatβs the whole tea. π«π₯
Signed off with bestie energy from source/version/date: http://cppreference.com, 2024.06.10, on the std::experi...ncurrencyTS)(3) page. πβ¨πΈ
π¦ 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