Template Function amdinfer::expandType

Function Documentation

template<typename ...Ts>
std::variant<Ts...> amdinfer::expandType(std::size_t i)

This is used to turn a runtime index into a variant with the right type.

https://www.reddit.com/r/cpp/comments/f8cbzs/comment/fimjm2f/?context=3

Template Parameters

Ts – the types of the variant. Order matters!

Parameters

i – index of the variant type to create

Returns

std::variant<Ts…>