Is it possible to use std::tuple "partly specialized" so that it contains std::pair<fixed_t, T> with varying T?
UPD: the tuple should contain the pairs. So it is equivalent to using an array of fixed_t together with a regular std::tuple.
Use variadic tempate alias and parameter pack expansion:
template<typename... Types>
using fixed_tuple = std::tuple< std::pair<fixed_t, Types>... >;
Live example.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With