单例模式对象的删除 1.不用特别删除,程序结束自动析构 2.用户控制进行删除 将析构函数置为私有定义静态删除函数static void destroy_cluster();void Cluster::destroy_cluster() { if (_cluster != nullptr) { delete _cluster; _cluster = nullptr; } } 4.调用destroy函数