Getting around copy semantics in C++

后端 未结 1 2104
攒了一身酷
攒了一身酷 2021-02-19 08:29

Please consider this code:

class A
{

};

int main()
{
    std::vector test;
    test.push_back(A());
}

The constructor and destructor

1条回答
提交回复
热议问题