Recent notes
Recursive lambdas in C++
There are algorithms that have a natural recursive representation and are very cumbersome or painful to write iteratively. With the advent of lambda expressions in C++11, it seemed only natural that they should support recursive calls. But reality hit hard: recursion and lambdas didn’t mix at all until C++14, and even then the support was far from programmer-friendly. The newest C++ edition finally brings the possibility of creating a recursive lambda to the table.
More ...Annotations in C++26 static reflection
C++26 added static reflection to the already big bag of compile-time features. One of the most powerful tools that made it into the language is the ability to use custom annotations and to inspect them at compile time. Here, we will see how to define and use annotations, and how to pass various arguments to them that can be extracted through reflection.
More ...