# std::execution::into_variant

> C++ Atlas: `cppatlas.com/w/cpp/execution/into_variant` | Source: https://en.cppreference.com/w/cpp/execution/into_variant | Domain: Execution | Standards: C++26

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.

## Official Specification Summary (cppreference)

```cpp
// Defined in header <execution>
execution::sender auto into_variant( execution::sender auto snd ); // (since C++26)
```

### Parameters

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

### 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.

---
Attribution: content from https://en.cppreference.com/w/cpp/execution/into_variant (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.