摘要: CS106L reference & const(引用与常量) 如果不使用引用,C++会默认对声明的对象进行拷贝 std::vector<int> vec{1, 2, 3}; const std::vector<int>& c_ref = vec; std::vector<int> copy = c 阅读全文
posted @ 2022-04-24 21:07 Lilyan&Code 阅读(404) 评论(0) 推荐(0) 编辑