C++ Core Guidelines: Rules for Smart Pointers

There were a lot of C++ experts who said that smart pointers were the most important feature of C++11. Today, I will write about smart pointers in C++.

Read more
Add CommentViews: 42153

C++ Core Guidelines: Rules for Allocating and Deallocating

The guidelines has six rules for explicit memory allocation and deallocation. Six! Maybe you are surprised because there is a simple rule in modern C++: don't use new and delete. Obviously, the story is not so simple.

Read more
Tags: memory
Add CommentViews: 20076

C++ Core Guidelines: Rules to Resource Management

This and the next posts will probably be about the most important concern in programming: resource management. The C++ Core Guidelines has rules for resource management in general but also rules for allocation and deallocation and smart pointers in particular. Today I will begin with the general rules of resource management.

Read more
Tags: memory
Add CommentViews: 17021

C++ Core Guidelines: Rules for Enumerations

The section to enumerations has eight rules. Since C++11, we have scoped enumerations which overcome a lot of the drawbacks of classical enumerations. 

Read more
Tags: enum
Add CommentViews: 74192

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

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

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

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

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

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

My Newest E-Books

Course: Modern C++ Concurrency in Practice

Course: C++ Standard Library including C++14 & C++17

Course: Embedded Programming with Modern C++

Course: Generic Programming (Templates)

Subscribe to the newsletter (+ pdf bundle)

Blog archive

Source Code

Visitors

Today 6523

All 3386534

Currently are 137 guests and no members online

Kubik-Rubik Joomla! Extensions

Latest comments