Skip to content

Charliechen114514/modern-cpp-patterns-playground

Repository files navigation

modern-cpp-patterns-playground

现代 C++20+ 设计模式练习示例

🚀 现代 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 构建并运行测试:

cmake -S . -B build
cmake --build build

开始阅读笔者写的一些笔记!

Documentations

🛠️ 贡献 非常欢迎贡献!如果你有改进建议或新的设计模式示例,欢迎提交 issue 或 PR。

📜 许可证 本项目基于 MIT License 许可证。

About

🚀 A modern C++20+ practice repository showcasing classic design patterns such as Singleton, Factory, and more

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published