单实例模式
https://www.cnblogs.com/codingmengmeng/p/5906583.html
1.造函数和析构函数为私有
2.instance为静态私有指针
3.GetInstance()为静态方法
单例模式下的线程同步问题
https://blog.csdn.net/qianfeng_dashuju/article/details/80063902
观察者模式
https://www.cnblogs.com/codingmengmeng/p/7645206.html
static_cast、dynamic_cast、const_cast和reinterpret_cast总结