If I have a template function, for example like this:
template<typename T>
void func(const std::vector<T>& v)
Is there any way I can determine within the function whether T is a pointer, or would I have to use another template function for this, ie:
template<typename T>
void func(const std::vector<T*>& v)
Thanks
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…