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++17/C++20 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:

C++20 Ranges Algorithms - 11 Modifying Operations

Updated:

In the previous article in the Ranges series, I covered some basics and non-modifying operations. Today it’s time for algorithms like transform, copy, generate, shuffle, and many more…. and there’s rotate as well :) Let’s go. Before we start   Key observations for std::ranges algorithms: Ranges algorithms are defined in the <algorithm> header, while the ranges infrastructure and core types are defined in the <ranges> header.

READ MORE...

Speeding up Pattern Searches with Boyer-Moore Algorithm from C++17

Updated:

With C++17, you can now use more sophisticated algorithms for pattern searches! You’ll have more control and a promising performance boost for many use cases. This article shows primary usage and runs a benchmark comparing the new techniques. May 2022 Updates: added notes about C++20 and constexpr algorithms, updated the benchmark and compared against std::ranges::search and custom strchr versions.

READ MORE...

C++20 Ranges Algorithms - 7 Non-modifying Operations

Updated:

C++20’s Ranges offer alternatives for most of <algorithm>'s'. This time I’d like to show you ten non-modifying operations. We’ll compare them with the “old” standard version and see their benefits and limitations. Let’s go. Before we start   Key observations for std::ranges algorithms: Ranges algorithms are defined in the <algorithm> header, while the ranges infrastructure and core types are defined in the <ranges> header.

READ MORE...

SFINAE, Immediate Context, Operator << and '\n'

Updated:

In this blog post, I’ll show and explain a strange-looking error about tuple_size_v and instantiation for \n character. You’ll see some tricky parts of SFINAE and how the compiler builds the overload resolution set. Let’s go. A surprising error   When doing experiments with tuple iteration (see part one and part two) I got this strange-looking compiler error:

READ MORE...

20 Smaller yet Handy C++20 Features

Updated:

C++20 is huge and filled with lots of large features. Just to mention a few: Modules, Coroutines, Concepts, Ranges, Calendar & Timezone, Formatting library. But, as you know, that’s not all. Depending on how we count, C++20 brought around 80 Library features and 70 language changes, so there’s a lot to cover :)

READ MORE...

C++ at the end of 2021

Updated:

I’m happy to present the 10th edition of “C++ at the end”! See what happened this year in the C++ World! New features, plans for the language, updated tools and compilers, conferences, books, and more! What was the most important event this year? The pandemic? C++20 adoption? Ongoing work for C++23 or something else?

READ MORE...