I have a function which can match std::vector
and other containers well:
template <typename T, typename... Rest,
template <typename, typename...> class Container>
std::string DoSomethingOnContainer(Container<T, Rest...> vals) {
// do something
}
But it cannot match std::array
, e.g. std::array<int, 10>
. How to make the function also match std::array
?
I am using c++17.