C++ Core Guidelines: Rules for Templates and Generic Programming

I give in this post an introduction to the rules for generic programming in C++. Generic programming is from my point of view the outstanding feature and the future of C++. Hence it follows, that this and the upcoming posts are about the future of C++.

Read more
Tags: templates
Comments 1Views: 12445

C++ Core Guidelines: Rules for Constants and Immutability

Making objects or methods const has two benefits. First, the compiler will complain when you break the contract. Second, you tell the user of the interface that the function will not modify the arguments.

Read more
Add CommentViews: 7600

C++ Core Gudelines: goto considered Evil

If you can't throw an exception and can't use final_action (finally) from the guideline support library, you have a problem. Exceptional states require exceptional actions: goto. Really?

Read more
Add CommentViews: 7308

C++ Core Guidelines: finally in C++

To make my point clear, this post is about the exceptional case that you can not throw an exception. If your program runs in a restricted embedded environment or you have to fulfil a hard-real-time requirement, this situation may be not so exceptional to you.

Read more
Add CommentViews: 16380

C++ Core Guidelines: Rules to Exception Handling

Today's post is about the right way to throw and catch exceptions. This means in particular when you should throw and how you should catch an exception.

Read more
Add CommentViews: 9036

C++ Core Guidelines: The noexcept Specifier and Operator

If you skim through the remaining rules to error handling, you often read the word noexcept. Before I write about the rules to error handling, I write first about the noexcept specifier and the noexcept operator in this post. 

Read more
Add CommentViews: 24614

C++ Core Guidelines: A Short Detour to Contracts in C++20

My original plan was it to write in this post about the next rules to error handling. But I changed my plan to write about the future: contracts in C++20.

Read more
Add CommentViews: 35668

C++ Core Guidelines: Rules for Error Handling

Error handling is an important part of writing good software; therefore, the C++ core guidelines has about 20 rules for error handling.

Read more
Add CommentViews: 14921

C++ Core Guidelines: The Remaining Rules to Lock-Free Programming

Today, I will finish my story to concurrency and lock-free programming in particular. There are four rules to lock-free programming in the C++ core guidelines left.

Read more
Tags: lock-free
Add CommentViews: 7991

Subscribe to the newsletter (+ pdf bundle)

Blog archive

Source Code

Visitors

Today 5020

All 2175010

Currently are 84 guests and no members online

Kubik-Rubik Joomla! Extensions

Latest comments