std::unique_ptr usage

后端 未结 3 726
后悔当初
后悔当初 2021-02-01 14:08
std::unique_ptr p1(new int);
std::unique_ptr p2(new int);
p2=p1;

It seems here that p1 is no longer \"unique\" since p2 refer to

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