KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
When I'm writing a function in a template class how can I find out what my T is? e.g. template <typename T> ostream& operator << (ostream &out,Vector<T>& vec) { if (typename T == int) } How can I write the above if statement so it works?
Tags (comma-separated)
Save Edits
Cancel