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++.
This author has not written his bio yet.
But we are proud to say that Rainer Grimm contributed 702 entries already.
This post will be about comparisons, swap, and hash. That means I conclude with his post my treatise about default operations rules in C++.
The rules for copy and move are pretty obvious. But before I describe them I have to write about the two remaining rules for constructors. They are about delegating and inheriting constructors.
Do you want to reach the next C++ level? Here are my open C++ seminars in the first half of 2018. Embedded Programming with C++: 16.01 – 18.01 C++11 and C++14: 13.03 – 15.03 Multithreading with modern C++: 08.05 – 09.05 I’m also happy to give the seminars on-site or in English. For further details […]
The lifecycle of each object starts with its creation; therefore, this post will be about the thirteen most fundamental rules for objects: constructor rules.
I have prepared the pdf bundle. To get it is quite simple.
Does my class need a destructor? I often heard this question. Most of the time the answer is no and you are okay with the rule of zero. Sometimes the answer is yes and we are back to the rule of five. To be more precise. The guidelines provide eight rules for destructors.
Concurrency with Modern C++ is a journey through current and upcoming concurrency in C++. C++11 and C++14 have the basic building blocks for creating concurrent or parallel programs. With C++17 we got the parallel algorithms of the Standard Template Library (STL). That means, most of the algorithms of the STL can be executed sequential, parallel, […]
This post is about the rule of zero, five, or maybe six. I will also show the difference between copy and reference semantics and a quite similar topic: deep versus shallow copy.
A class is a user-defined type where the programmer can specify the representation, the operations, and the interface. The C++ core guidelines have a lot of rules for user-defined types.
Now, it’s time to choose the next pdf bundle? You will get all posts, all source files, and a cmake file to the chosen topic.
