vector push_back()和emplace_back()用法总结
push_back()用法总结
#include
#include
using namespace std;
typedef struct testEmplace
{
testEmplace()
{
std::cout << "create testEmplace" << std::endl;
}
testEmplace(int a)
{
std::cout << "create testEmplace with param" << std::endl;
}
testEmplace(const testEmplace& src)
{
std::cout << "copy testEmplace" << std::endl;
}
testEmp
共有 0 条评论