How to transpose a common JavaScript idiom in modern C++. Read the article, here…
A beginner's thoughts on Lambdas
Nice series as a whole, specifically this part dedicated to lambdas.…
Mutable lambdas
If a lambda is marked mutable (e.g. []() mutable { }) it is allowed to mutate the values that have been captured by value. A posteriori, it makes perfect sense. @pmr…
Returning a Boost.Range from a function
Boost.Range provides some little gems like boost::adaptors::filtered and boost::adaptors::transformed, which can be used to write sophisticated range-based for loops. However, in same cases we would like to factor the code that creates that range out of the function in which the iteration takes place; something…