
Modern C++ Features
A cheatsheet showing what each version of modern C++ (11 through 23) added, with short code examples.AnthonyCalandra/modern-cpp-features
- Stars
- 21.9k
- Forks
- 2.3k
- Licence
- MIT
- Language
- —
- Last update
- 12 days ago
- Type
- Learning resource
What it is
This is a reference document that lists new language and library features added to C++ in versions 11, 14, 17, 20, and 23, with short code examples for each. It is organized as a long README with a table-of-contents-style overview and a section per feature. People use it to quickly learn what changed in newer C++ standards or to look up how a specific feature works.
- Look up what a C++17 feature like structured bindings does and see an example
- Scan the C++20 list to decide which features your compiler and project can use
- Find which C++23 library additions, such as std::expected, are available to try
Great for
- C++ developers catching up on features added since C++11
- Students learning modern C++ syntax and idioms
- Developers reviewing an older codebase and wanting to see what newer code could look like
- Anyone wanting a quick reference rather than the full standard document
Not ideal for
- Readers who need complete, authoritative specification details, since the README gives brief summaries and examples rather than the formal standard text
- Complete beginners to programming, since the examples assume existing C++ knowledge
How to get it
- 1
Read it online
Clone the repository locally (optional)
git clone https://github.com/AnthonyCalandra/modern-cpp-features - 2
Run it
- Open the repository page on GitHub and read the README in your browser
- Use the Overview section to find the C++ version you care about
- Jump to the feature section for that version and read the code example
- Try the example in your own C++ compiler to see how it behaves
- 3
Get the most out of it
- Use the overview lists as a checklist of features to learn for each standard version
- Check your compiler's support for a given feature before relying on it in production code
- Use the links in the overview to jump directly to each feature section
Downloads
Strengths
- Covers five C++ standard versions in one place, grouped by version and by language versus library
- Each feature has a short description and a code example
- Widely starred and MIT licensed, so it can be freely reused
Trade-offs
- The README in the source provided is truncated, so not every section's detail could be verified here
- It is a cheatsheet, so it does not replace reading the official standard or compiler documentation
- No release versions are listed, so it is unclear how often the content is updated
How it compares
| Project | Stars | Type | Level | Updated | Best for |
|---|---|---|---|---|---|
| modern-cpp-features (this) | 21.9k | Learning resource | beginner | 12 days ago | C++ developers catching up on features added since C++11 |
| modern-cpp-tutorial | 25.9k | Learning resource | intermediate | 29 days ago | Experienced C++ developers who want a quick overview of modern features |
| cpp-httplib | 17k | Library | beginner | 6 days ago | C++ developers who need a simple embedded HTTP server or client without a large framework |
| entt | 13.2k | Library | advanced | 4 days ago | C++ game developers who want an ECS |
| C-Plus-Plus | 34.8k | Learning resource | intermediate | 1 months ago | Students learning algorithms and data structures in C++ |
| IoT-For-Beginners | 17.2k | Learning resource | beginner | 5 months ago | Students who want a structured, project-based introduction to IoT |
Stats synced from GitHub. The assessment above was drafted with AI from the project's README on 2026-10-29 and may miss recent changes — check the README before relying on a command. MIT licence: free to use, modify and distribute, including commercially, as long as you keep the copyright notice.