The C++ Stories Weekly Newsletter

Join ~11000 developers who read about Modern C++, news reports, tools, and more! A new email every Monday.
Bonuses included! C++23/C++20/C++17 ref cards and more!

The above field is supplemented with consent to receive a newsletter containing information and marketing content about the cppstories.com portal from Bartłomiej Filipek codebf based in Krakow. The consent may be withdrawn at any time. See the full Privacy Policy.


See the latest articles:

Lambda Week: Tricks

Updated:

We’re on the last day of the lambda week. We have all the essential knowledge, and now we can learn some tricks! The Series   This blog post is a part of the series on lambdas: The syntax changes (Tuesday 4th August) Capturing things (Wednesday 5th August) Going generic (Thursday 6th August) Tricks (Friday 5th August)(this post) +[]()   Have a closer look:

READ MORE...

Lambda Week: Going Generic

Updated:

We’re in the third day of the lambda week. So far, you’ve learned basic syntax and how to capture things. Another important aspect is that lambdas can also be used in the “generic” scenarios. This is especially possible since C++14 where we got generic lambdas (auto arguments), and then in C++20, you can even specify a template lambda!

READ MORE...

Lambda Week: Capturing Things

Updated:

We’re in the second day of the lambda week. Today you’ll learn about the options you have when you want to capture things from the external scope. Local variables, global, static, variadic packs, this pointer… what’s possible and what’s not? The Series   This blog post is a part of the series on lambdas:

READ MORE...

C++ Lambda Story is 100% Complete!

Updated:

I’m pleased to announce that I’ve finished the work on the latest update for C++ Lambda Story! This makes the book complete now, and I can finally set its status to 100%! Read on to see the latest changes. It got more than 50 new pages! Changes   Last time the book had 95 pages, and with the recent additions, it reached 146!

READ MORE...

See My Talk: Empty Base Class Optimisation, [[no_unique_address]] and other C++20 Attributes

Updated:

Last Tuesday, 21th July, I had a pleasure to talk about [[no_unique_address]] on our Cracow C++ User Group online meeting. Here are the slides and additional comments from the presentation. Some Issues   Our C++ Cracow User group: https://www.meetup.com/C-User-Group-Cracow/ We also experienced the problems related to COVID situation, and for two months - in March and April, we had to cancel our regular monthly meetings.

READ MORE...

Polymorphic Allocators, std::vector Growth and Hacking

Updated:

The concept of a polymorphic allocator from C++17 is an enhancement to standard allocators from the Standard Library. It’s much easier to use than a regular allocator and allows containers to have the same type while having a different allocator, or even a possibility to change allocators at runtime. Let’s see how we can use it and hack to see the growth of std::vector containers.

READ MORE...