Doesn’t seem like there’s an alternative:
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Recovering parameter type from parameter list | 15 | 2048 | January 11, 2017 | |
| Specifying output container type based on input container | 14 | 621 | March 20, 2023 | |
| Parametric type to force common container type | 9 | 635 | March 12, 2021 | |
| How to convert element type of a container? | 5 | 1652 | January 30, 2019 | |
| Type system limitations | 5 | 749 | February 21, 2020 |