2023年1月5日

摘要: 模板类实现单例 要求编译器至少支持C++11 #include <utility> template<typename T> class Singleton { public: Singleton() = default; ~Singleton() = default; Singleton(cons 阅读全文
posted @ 2023-01-05 16:37 Livio 阅读(15) 评论(0) 推荐(0) 编辑
 
摘要: 运行环境 win11 linux子系统Ubuntu2204 g++ 11.3.0 Linux DESKTOP-XXXXX 5.15.79.1-microsoft-standard-WSL2 #1 SMP Wed Nov 23 01:01:46 UTC 2022 x86_64 x86_64 x86_6 阅读全文
posted @ 2023-01-05 15:51 Livio 阅读(120) 评论(0) 推荐(0) 编辑