Exploring C++20 - Class Types in Non-Type Template Parameters—Tobias Widlund


Exploring C++20 - Class Types in Non-Type Template Parameters

by Tobias Widlund

From the article:

If I had to pick out my favourite features planned for C++20, then this one would definitely be amongst the top 5 since I love compile time programming. This feature makes it more natural to write templated code since it allows you to group data together and pass it to a template without having to resort to hacks.

To explain what this feature is about, I will start by talking about normal non-type template parameters from pre-C++20...

The overview of C++20 Range view—Ryou Ezoe

Simple, good.

The overview of C++20 Range view

by Ryou Ezoe

From the article:

The latest C++ draft at the time of writing incorporated The One Ranges Proposal.


So what is a Range, anyway? The C++ Standard Comittee member, Eric Niebler, summarised it well in this article:

Eric Niebler – Eric Niebler

Actually, he summarised it all too well to the point that his code became almost unreadable to an average C++ programmer. One might say, it's practically useless. So this article serves as a quick tutorial for the Range view...