Visiting a std::variant with the Overload Pattern

Typically, you use the overload pattern for a std::variant. std::variant is a type-safe union. A std::variant (C++17) has one value from one of its types. std::visit allows you to apply a visitor to it. Exactly here comes the overload pattern very handy into play.

Read more
Views: 1322

Smart Tricks with Parameter Packs and Fold Expressions

To complete my post about variadic templates and fold expressions, I present in this post smart tricks using parameter packs and fold expressions.

Read more
Views: 4298

The New pdf Bundle is Ready: C++20 Modules

I have prepared the pdf bundle. To get it is quite simple.

Read more
Views: 2422

From Variadic Templates to Fold Expressions

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. 

Read more
Views: 3269

Modern C++ Collection

Get all my books about modern C++ in one bundle.

Read more
Views: 2574

C++20 Modules: Private Module Fragment and Header Units

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.

Read more
Views: 4539

The First Big Update of My C++20 Book

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.

Read more
Views: 2875

Which pdf bundle do you want? Make your choice!

Now, it's time to choose the next pdf bundle? Get all the material to your chosen topic.

Read more
Views: 1577

More about Variadic Templates ...

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.

Read more
Views: 4258

Variadic Templates or the Power of Three Dots

A variadic template is a template that can have an arbitrary number of template parameters. This feature may seem magical to you if you see it the first time. So, let me demystify variadic templates.

Read more
Views: 5023

My Newest E-Books

Course: Modern C++ Concurrency in Practice

Course: C++ Standard Library including C++14 & C++17

Course: Embedded Programming with Modern C++

Course: Generic Programming (Templates)

Course: C++ Fundamentals for Professionals

Interactive Course: The All-in-One Guide to C++20

Subscribe to the newsletter (+ pdf bundle)

Blog archive

Source Code

Visitors

Today 184

Yesterday 8036

Week 16399

Month 191109

All 7253399

Currently are 143 guests and no members online

Kubik-Rubik Joomla! Extensions

Latest comments