Modern C++ Collection
Get all my books about modern C++ in one bundle.
This author has not written his bio yet.
But we are proud to say that Rainer Grimm contributed 656 entries already.
Get all my books about modern C++ in one bundle.
In my last two posts, “Variadic Templates or the Power of Three Dots” and “More about Variadic Templates“, I introduced variadic templates. This post goes one step further in the future, and presents fold expressions that can directly reduce a parameter pack with a binary operator.
In the last weeks, I learned something new about modules in C++20: private modules fragments and header units. Consequently, I make a short detour in this post and present these new features.
I’m happy to announce the first big update of my C++20 book. The update was mainly due to the improved C++ compiler support of C++20. The update includes concepts, the ranges library, modules, the three-way comparison operator, the format library, and the chrono library.
Now, it’s time to choose the next pdf bundle? Get all the material to your chosen topic.
There is a lot of power in the strange-looking three dots that are heavily used in the Standard Template Library. Today, I visualize the expansion of the three dots and show a few use cases.
A variadic template is a template that can have an arbitrary number of template parameters. If you see it for the first time, this feature may seem magical to you. So, let me demystify variadic templates.
Template instantiation is creating a concrete function or a concrete class out of a function or class template. Creating template instantiation can be implicit (compiler-generated) or explicit (user-provided).
I’m happy to present the five winners in this post including their answers.
In my last post, “Parallel Algorithms of the STL with the GCC Compiler“, I presented the necessary theory about the C++17 algorithm. Today, I made a performance test using the Microsoft and GCC compiler to answer the simple question: Does the execution policy pay off?