std::execut...nto_variant(3)

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

okay so bestie, welcome to the std::execut...nto_variant(3) page from the C++ Standard Libary manual β€” it’s all about std::execution::into_variant and it’s giving very niche but very iconic C++ energy πŸ’…βœ¨


🌸 NAME 🌸

std::execution::into_variant β€” literally std::execution::into_variant. that’s the name, no cap 🫢


πŸ¦‹ Synopsis πŸ¦‹

here’s the exact vibe check, bestie:

Defined in header <execution>
execution::sender auto into_variant(

    execution::sender auto snd        (since C++26)

);

πŸ’– Parameters πŸ’–

  • snd β€” the input sender 🫢. it can send multiple sets of values depending on runtime conditions, fr fr.

✨ 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 πŸ’…πŸ”₯


mwah πŸ’‹ β€” shoutout to source http://cppreference.com, version/date 2024.06.10, and the std::execut...nto_variant(3) footer vibes. πŸŽ€πŸ«Ά

πŸ“¦ where this page comes from