Pattern and Kata are the best methods for computer language learning.
This repository contains C++ learning materials, examples, and a comprehensive documentation guide for modern C++ development.
The documentation is built with Sphinx and available at: Beautiful C++ Doc
Located in doc/source/, organized by topic:
- overview.md - C++ 语言特性概述
- modern_features.md - 现代 C++ 特性 (C++11/14/17/20/23)
- trap.md - 常见陷阱与易错点
- best_practice.md - 最佳实践
- migration.md - 从其他语言迁移指南
- thread_basics.md - 线程基础
- mutex_lock.md - 互斥锁与锁管理
- atomic.md - 原子操作
- condition_variable.md - 条件变量
- async_future.md - 异步与 Future
- coroutine.md - 协程 (C++20)
- patterns.md - 并发模式
- pitfalls.md - 并发陷阱
- profiling.md - 性能分析工具
- optimization.md - 优化技巧
- benchmark.md - 基准测试
- cache.md - 缓存优化
- compiler.md - 编译器优化
- smart_pointer.md - 智能指针
- raii.md - RAII 原则
- allocation.md - 内存分配
- layout.md - 内存布局
- leak_detection.md - 内存泄漏检测
- socket_basics.md - Socket 基础
- tcp_udp.md - TCP/UDP 编程
- http_client.md - HTTP 客户端
- async_io.md - 异步 I/O
- googletest.md - GoogleTest 测试框架
- jsoncpp.md - JsonCpp JSON 解析
- libcurl.md - libcurl HTTP 库
- boost.md - Boost 库概览
- boost_asio.md - Boost.Asio 异步 I/O
- boost_beast.md - Boost.Beast HTTP/WebSocket
- openssl.md - OpenSSL 加密库
- syntax.md - 语法速查
- stl.md - STL 速查
- commands.md - 命令速查
cd doc
pip install -r requirements.txt
make html- example - Basic examples
- chatgpt - ChatGPT related examples
- algorithm - Algorithm implementations
- pattern - Design patterns
mkdir bld
cd bld
cmake ..
makeCC BY-NC-ND 4.0