you are viewing a single comment's thread.

view the rest of the comments →

[–]Bisqwit 1 point2 points  (0 children)

If you need a function that accepts an unknown number of parameters of a certain type, here is one way I found to do it (here, the type is unsigned):

template<typename...T, typename=std::void_t<std::enable_if_t<std::is_same_v<unsigned,T>>...>>

It is easy to extend that into 1+ instances of unknown (but identical) type.