更新时间:2023-11-11 17:52:16
你不能使用 std :: vector auto 。您可以改用 std :: iterator_traits :
std :: vector
auto
You cannot use a std::vector of auto. You might use std::iterator_traits instead:
std::vector
std::vector<typename std::iterator_traits<Iter>::value_type> temp(size);
在C ++中初始化模板函数内的auto(未知)类型的向量