I know we can do the following,
template <class CONTAINER>
void f(CONTAINER *c){}
int main(){
std::vector<int> v;
f(&v);
std::set<int> s;
f(&s);
}
Then, I want an alternative (convenient for my project), like the following,
template <class CONTAINER>
void f(CONTAINER<int> *c){} // the CONTAINER is the name of a template class
But, the compiler outputs
error: ‘CONTAINER’ is not a template
Is this possible?