Entries by Rainer Grimm

Regular Types

The concept of a regular type goes back to the creator of the Standard Template Library (STL) Alexander Stepanov. A regular type is a user-defined type and behaves like a built-in type.

The Rule of Zero, or Six

The rule of zero, or six, is one of the advanced rules in modern C++. I wrote in my current book “C++ Core Guidelines Explained: Best Practices for Modern C++” about them. Today, I want to quote the relevant parts of my book in this post.

Partial Function Application

Partial Function Application is a technique in which a function binds a few of its arguments and returns a function taking fewer arguments. This technique is related to a technique used in functional languages called currying.

The Copy-and-Swap Idiom

An idiom is an architectural or design pattern implementation in a concrete programming language. Applying them is idiomatic for a programming language. Today. I write about the Copy-and-Swap Idiom in C++. This idiom gives you the strong exception safety guarantee.