📜  C++ 单例防止复制 - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:51.146000             🧑  作者: Mango

代码示例1
// this can be even in public section
Foo(Foo const&) = delete;
Foo& operator=(Foo const&) = delete;