lambdas

C++ Insights - Lambdas

Honestly, many programmers in my classes have issues with the syntactic sugar of lambdas. Desugaring lambdas with C++ Insights helps quite often.

Read more
Tags: lambdas
Add CommentViews: 6002

C++ Core Guidelines: Pass Function Objects as Operations

An interface is a contract between a user and an implementer and should, therefore, be written with great care. This holds also true if you pass an operation as an argument.

Read more
Add CommentViews: 9222

C++ Core Guidelines: To Switch or not to Switch, that is the Question

At first, I have to apologize. Today, I wanted to continue my journey through the C++ Core Guidelines with the arithmetic expressions. In my seminar in this week, we had a long discussion about switch statements in C/C++ and how they become totally unmaintainable. Honestly, I'm not a fan of the switch statements and I have to say: there is life after the switch statements.

Read more
Add CommentViews: 11750

C++ Core Guidelines: Function Objects and Lambdas

I can not think about modern C++ without lambda expressions. So my wrong assumption was that they are a lot of rules for lambda expressions. Wrong! There are less than ten rules. But as ever I learned something new.

Read more
Comments 1Views: 22769

Functional in C++11 and C++14: Dispatch Table and Generic Lambdas

My favourite example the dispatch table shows how nice the features in modern C++ work together. A dispatch table is a table of pointers to functions. In my case, it is a table of handles to polymorphic function wrappers.

Read more
Tags: lambdas
Comments 2Views: 38379

Subscribe to the newsletter (+ pdf bundle)

Blog archive

Source Code

Visitors

Today 3254

All 2069507

Currently are 162 guests and no members online

Kubik-Rubik Joomla! Extensions

Latest comments