摘要:
模板类实现单例 要求编译器至少支持C++11 #include <utility> template<typename T> class Singleton { public: Singleton() = default; ~Singleton() = default; Singleton(cons 阅读全文
2023年1月5日
摘要:
运行环境 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 阅读全文