摘要: 如果想要在C++程序中用vector传递一个大内存,用swap是比较快的方法,不过传递之后,原始数据就不存在了。 如果后续不再使用原数据,用swap会比较好。 #include <iostream> #include <ctime> #include <vector> using namespace 阅读全文
posted @ 2021-04-25 20:47 Dsp Tian 阅读(1502) 评论(0) 推荐(0) 编辑