🚀 现代 C++20+ 设计模式实践
本项目是一个现代化的 C++20+ 代码练习仓库,展示了经典设计模式(例如单例模式、工厂模式等)的简明、安全实现。项目旨在通过实际演示帮助你更好地掌握现代 C++ 编程和常见设计模式的要点。
.
├── Documentations # 文档注释
├── README.md
└── Singleton # 单例模式
├── GlobalConfig # 全局config读取器
└── Logger # 最简单的Logger
克隆仓库:
git clone https://github.com/Charliechen114514/modern-cpp-patterns-playground
cd modern-cpp-patterns-playground
cmake -S . -B build
cmake --build build
🛠️ 贡献 非常欢迎贡献!如果你有改进建议或新的设计模式示例,欢迎提交 issue 或 PR。
📜 许可证 本项目基于 MIT License 许可证。