std::experi...eady_future(3)
π NAME π
std::experimental::make_ready_future - std::experimental::make_ready_future. Yes bestie, the name is literally the name twice, no cap π
.
β¨ Synopsis β¨
Okay so first thing: it's Defined in header <experimental/future> π¦. Here's the exact declaration vibe:
template< class T > (1)
(concurrency TS)
future<V /* see below */> make_ready_future( T&& value );
future<void> make_ready_future(); (2)
(concurrency TS)
Then the numbered tea β:
- If
std::decay_t<T>isstd::reference_wrapper<X>, then the typeVisX&; otherwise,Visstd::decay_t<T>. This creates a shared state of typeVthat is immediately ready, with the result constructed fromstd::forward<T>(value), then returns astd::experimental::futureassociated with that shared state. π - This creates a shared state of type
voidthat is immediately ready, then returns astd::experimental::futureassociated with that shared state. β¨
π¦ Return value π¦
A std::experimental::future associated with the shared state that is created. That's the whole vibe π«Ά.
π See also π
make_exceptional_futureβ produces a future that is ready immediately and holds the given exception (concurrency TS) (function template). π₯
mwah π β source: http://cppreference.com, version/date: 2024.06.10, for the std::experi...eady_future(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