The CPP Guide repository is meant to be a guide / quick reference for C++ developers where I try to get to the point so you can spend more time programming. This guide is Markdown, so it is easily opened using Visual Studio Code or Github. It contains extensive documentation, code examples and best practices.
π Read it online (with search): benjaminyde.github.io/CPP-Guide
Before you dive in, it's important to understand that this guide is structured by topic, not by difficulty. There is no prescribed "beginner to advanced" path. Feel free to jump to any section that is relevant to your needs. A developer needing to understand std::vector can go straight there, while another might need to brush up on "RAII" or "CMake Presets."
Explore the π examples directory for interactive C++ code examples, easily executable inside a Docker DevContainer within Visual Studio Code. This setup ensures a consistent and streamlined coding environment, ideal for learning and experimentation.
The guide is also published as a Docusaurus website, built from the π guide directory. The website project lives in π docusaurus and has its own DevContainer (cpp_guide_docs, in .devcontainer/docs_x64_ubuntu24.04).
- Open the project in the
cpp_guide_docsDevContainer. Dependencies are installed automatically (npm ci). - Go into the
docusaurusfolder. - Run
npm startto start a live-reloading development server at localhost:3000/CPP-Guide/. - Run
npm run build && npm run serveto test the production build. The search bar only works in a production build: the search index is generated at build time, so no external search service is needed.
|
π Strings, Streams & Files
|
π¦ Containers
|
π§ Memory Management
π Functions
π Templates |
ποΈ Object Oriented Programming (OOP)
|
Introduction |
Inheritance |
Virtual Functions |
π οΈ C++ Compilation, CMake & Tooling
|
Compilation Process |
CMake
|
Tooling |
|
π Typing, Casting & ConstExpr |
β‘ Concurrency |
π¨ Design Patterns & Idioms |
π§ Todo
- Design patterns
- Error handling
|
|