Namespaces
Variants
Actions

std::execution::into_variant

From cppreference.com
< cpp‎ | execution
 
C++
 
Execution control library
Defined in header <execution>
execution::sender auto into_variant( execution::sender auto snd );
(since C++26)

[edit] Parameters

snd - input sender which can send multiple sets of values depending on runtime conditions.

[edit] Return value

Returns a sender that sends a variant of tuples of all the possible sets of types sent by the input sender. The helper function turns them into a single variant value.

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