classes

C++ Core Guidelines: Rules for Unions

A union is a special data type where all members start at the same address. A union can hold only one type at a time; therefore, you can save memory. A tagged union is a union which keeps track of its types.

Read more
Tags: classes
Comments 2Views: 22352

C++ Core Guidelines: More Rules for Overloading

I started in the last post my journey through the rules for overloading of functions and operators. Let me continue and finish my journey with this post.

Read more
Comments 1Views: 10997

C++ Core Guidelines: Rules for Overloading and Overload Operators

There are ten rules for overloading and overload operators in the C++ core guidelines. Lots of them are quite obvious but if you don't follow them, your software may become very unintuitive.

Read more
Comments 1Views: 18055

C++ Core Guidelines: Accessing Objects in a Hierarchy

There are nine rules to access objects in class hierarchies. Let's have a closer look.

Read more
Add CommentViews: 12744

C++ Core Guidelines: The Remaining Rules to Class Hierarchies

I needed three posts to present the 20 rules for class hierarchies in the C++ core guidelines. Here are the seven remaining rules.

Read more
Add CommentViews: 10754

C++ Core Guidelines: More Rules to Class Hierarchies

In the last post, I started our journey with the rules to class hierarchies in modern C++. The first rules had a quite general focus. This time, I will continue our journey. Now, the rules have a closer focus.

Read more
Add CommentViews: 14129

C++ Core Guidelines: Class Hierarchies

Let's talk in this post about rules for class hierarchies in general and in particular. The C++ core guidelines have about thirty rules in total; therefore, I have a lot to talk about.

Read more
Comments 1Views: 26953

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: 29862

C++ Core Guidelines: Comparison, Swap, and Hash

This post will be about comparisons, swap and hash. That means I conclude with his post my treatise about default operations rules in C++.

Read more
Tags: classes
Add CommentViews: 9458

Subscribe to the newsletter (+ pdf bundle)

Blog archive

Source Code

Visitors

Today 4807

All 2669310

Currently are 159 guests and no members online

Kubik-Rubik Joomla! Extensions

Latest comments