🌈 搜索
📅  最后修改于: 2022-03-11 14:44:55.234000             🧑  作者: Mango
unique_ptr ptr1 (new A); // Error: can't copy unique_ptr unique_ptr ptr2 = ptr1; // Works, resource now stored in ptr2 unique_ptr ptr2 = move(ptr1);