Given this code
template <typename T, typename... Args>auto make_vector(Args&&... args){ return std::vector<T>{std::forward<Args>(args)...};}
I don't want to type make_vector<int>(1, 2, 3, 4). How to get rid of T?
make_vector<int>(1, 2, 3, 4)
Aucun commentaire:
Enregistrer un commentaire