How can I tell the compiler that U is equivalent to either std::vector<T> or T?
U
std::vector<T>
T
template<typename T, typename U> std::vector<T> foo(T t, U){return t;}
Aucun commentaire:
Enregistrer un commentaire