Even though std::visit requires an overloaded callable object as its first argument, it is possible to create such an object directly at the call site. …
Visiting Variants Using Lambdas – Part 1

Program in C++ from basic to expert!
Even though std::visit requires an overloaded callable object as its first argument, it is possible to create such an object directly at the call site. …
By now it should be (hopefully) widely known that the term “zero-cost abstractions” is a misnomer. Although, to be clear, it’s more of an unfortunate …
Passing functions to other functions is a powerful tool that allows you to create flexible and modular code. In C++, you can do this in …
The modern C++ language standard is constantly evolving, offering new features for programmers. One of the important proposals related to memory management is the P0792R1 …
C++ has been evolving for several decades, and with each new standard the language gets improvements that make the code more reliable, productive and convenient. …
In one of my previous articles, “compile-time repeat & noexcept-correctness”, I looked at the design and implementation of a function repeat(f) that, when called, expands …
In March 2018, a regular meeting of the International Organization for Standardization (ISO) was held on topical issues of standardization in various industries. The event …