emplace_back
vector的push_back与emplace_back
[为什么需要将移动构造函数和移动赋值运算符标记为noexcept](https://young-flash.github.io/2021/12/18/%E4%B8%BA%E4%BB%80%E4%B9%88%E9%9C%80%E8%A6%81%E5%B0%86%E7%A7%BB%E5%8A%A8%E6 ......
C++ push_back和emplace_back的区别(含测试代码)
#include<iostream> #include<string> #include<set> #include<time.h> #include<cstring> #include <vector> #define LL long long #define MAXN 100010 using ......
C++ STL vector 性能之push_back、emplace_back、reserve
#include <iostream> #include <vector> #include <chrono> using namespace std; constexpr int N = 10; void timeMeasure(void(*f)()){ auto begin = std::chr ......