HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
AnthonyCalandra
modern-cpp-features
Learning & Reference2016–2026
AnthonyCalandra / modern-cpp-features

modern-cpp-features

A cheatsheet of modern C++ language and library features.

18Distinct people
26Mentions
0Explicit recommenders
22KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

A cheatsheet of modern C++ language and library features.

GitHub

Where it is used

No documented product use was verified in the last source check.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 1:49:46 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year26 dated mentions

Observed mentions: 2016-11-11 03:54:11 UTC to 2026-06-16 00:15:30 UTC.

02462016-01-01 00:00:00 UTC to 2017-01-01 00:00:00 UTC (exclusive): 3 mentions; 3 submissions, 0 comments20162017-01-01 00:00:00 UTC to 2018-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2018-01-01 00:00:00 UTC to 2019-01-01 00:00:00 UTC (exclusive): 2 mentions; 1 submissions, 1 comments2019-01-01 00:00:00 UTC to 2020-01-01 00:00:00 UTC (exclusive): 4 mentions; 1 submissions, 3 comments2020-01-01 00:00:00 UTC to 2021-01-01 00:00:00 UTC (exclusive): 2 mentions; 1 submissions, 1 comments2021-01-01 00:00:00 UTC to 2022-01-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments20212022-01-01 00:00:00 UTC to 2023-01-01 00:00:00 UTC (exclusive): 6 mentions; 0 submissions, 6 comments2023-01-01 00:00:00 UTC to 2024-01-01 00:00:00 UTC (exclusive): 4 mentions; 1 submissions, 3 comments2024-01-01 00:00:00 UTC to 2025-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2025-01-01 00:00:00 UTC to 2026-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-01-01 00:00:00 UTC to 2027-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments. Incomplete calendar period.2026*

* An incomplete calendar period is marked with an outlined bar. Its count is not directly comparable with a full period.

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20162016-01-01 00:00:00 UTC2017-01-01 00:00:00 UTC330
20172017-01-01 00:00:00 UTC2018-01-01 00:00:00 UTC101
20182018-01-01 00:00:00 UTC2019-01-01 00:00:00 UTC211
20192019-01-01 00:00:00 UTC2020-01-01 00:00:00 UTC413
20202020-01-01 00:00:00 UTC2021-01-01 00:00:00 UTC211
20212021-01-01 00:00:00 UTC2022-01-01 00:00:00 UTC202
20222022-01-01 00:00:00 UTC2023-01-01 00:00:00 UTC606
20232023-01-01 00:00:00 UTC2024-01-01 00:00:00 UTC413
20242024-01-01 00:00:00 UTC2025-01-01 00:00:00 UTC101
20252025-01-01 00:00:00 UTC2026-01-01 00:00:00 UTC000
2026 (partial)2026-01-01 00:00:00 UTC2027-01-01 00:00:00 UTC101

What Hacker News says

26 sources
For context, I was working in C++ when C++0x was considered exotic and a bunch of actually useful stuff was in boost, basically making boost mandatory - and the headache of setting up a project and tooling to do that was enough to push me to other languages for small projects. When I picked C++ back up, I had a greenfield project I wanted to work on and I landed on this as a reference: https://github.com/AnthonyCalandra/modern-cpp-features. I just started working on my project and every time I ran into something where I knew other languages or libraries covered a gap, I would look through that guide and use it as a reference to bring it into my code. Smart pointers, auto types being two big ones. That, and threads, concurrency primitives - I remember hitting those and being like wow, you don't need a bunch of #IFDEF's to be cross platform
Read the rest
anymore! I also found there were header only libraries that were easy to vendor for things like json parsing, image processing, and thread pools. That saved me a lot of headaches, and created new ones! ha.
In Show HN: Fata – Spaced repetition to fight skill rot from AI coding
In Ask HN: Is C++ making a comeback? “modern C++” versus Golang/Rust/Zig/Nim/D?

Ask HN: Is C++ making a comeback? “modern C++” versus Golang/Rust/Zig/Nim/D?

I'm hearing the term "modern C++" bandied about. I'm guessing it means "C++ has evolved to something worth considering versus more modern languages". What do you think? Given a real world project, what might lead you to use modern C++ instead of Golang, Zig, Rust etc? Or is C++ too old and dusty despite its updates? Some references: "Welcome back to C++ - Modern C++" https://learn.microsoft.com/en-us/cpp/cpp/welcome-back-to-cpp-modern-cpp?view=msvc… "21 New Features of Modern C++ to Use in Your Project" http://www.vishalchovatiya.com/21-new-features-of-modern-cpp-to-use-in-your-project/ "What is modern C++"? https://www.reddit.com/r/cpp_questions/comments/tgs6ir/what_is_modern_c/ "C++ is the next C++" https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p2657r0.html "modern c++ features" https://github.com/AnthonyCalandra/modern
Read the rest
3 points · Open discussion
I will copy my answer from a previous "Ask HN" that asked a similar question. > https://cppbyexample.com/ > > https://hackingcpp.com/ > > https://www.learncpp.com/ > > https://github.com/AnthonyCalandra/modern-cpp-features > > https://cppinsights.io/ it's a must so you can investigate what gets generated by templates behind the scenes. > http://eel.is/c++draft/ bookmark this, you will need it! Now, about books I would suggest the latest "A tour of C++" by Bjarne Stroustrup; it's ideal for experienced programmers that want to learn modern C++ rather fast. Other books would be Scott Meyers' Effective Series, Andrei Alexandrescu and Herb Sutter are a must, and of course Jason Turner's "C++ Weekly" series [1]; of course apart from the books, the links I have originally shared are more than enough to cover everything aroun
Read the rest
In Ask HN: Best way to learn C++ in 2022
TLDR; Learn both and choose the right tool for the right job. Now, for C++ I can share some links I personally follow: https://github.com/AnthonyCalandra/modern-cpp-features https://www.youtube.com/c/lefticus1/videos https://www.fluentcpp.com/ https://www.cppstories.com/ https://hackingcpp.com/ https://www.modernescpp.com/ About Rust, this link https://www.rust-lang.org/learn shares far too many goodies that any level of programmer can benefit out of it. Enjoy!
In Ask HN: Learn C++11 or Rust in 2022?
In my humble opinion, any C++ developer wants to call him or her self a professional must read his books...all of them! So, to recap, here are the names of C++ specialists you need to read their books and / or articles they publish: * Bjarne Stroustrup of course * Andrei Alexandrescu * Scott Meyers * Herb Sutter * Jason Turner (His YouTube channel is a must; too many goodies in it!) * Nicolai Josuttis * John Lakos If you just want to revise your C++ knowledge and bring it up to date, just read the following repo and you are good to go https://github.com/AnthonyCalandra/modern-cpp-features
In Ask HN: What are relevant books as of C++20?
I'm going to disagree with sibling and say that a lot has changed since 2007. The biggest game changers arrived in C++11 like auto and move semantics, but C++17 also introduced some interesting stuff like optionals, destructuring, folding expressions and lambda capturing this by value. Here's a list with code samples: https://github.com/AnthonyCalandra/modern-cpp-features As much as I enjoy hating on C++, I have to admit most of the new features are great.
In John Carmack on Inlined Code (2014)

Showing the 15 most recent of 26 sources. Enable JavaScript to search and browse every indexed mention.

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.