C++ Core Guidelines: Rules for Templates and Hierarchies

Due to the  C++ core guidelines "Templates are the backbone of C++’s support for generic programming and class hierarchies the backbone of its support for object-oriented programming. The two language mechanisms can be used effectively in combination, but a few design pitfalls must be avoided." Let me see what this means.

Read more
Tags: templates
Views: 13326

C++ Core Guidelines: Ordering of User-Defined Types

My post for today is just loosely coupled to the rules of the C++ core guidelines because they provide not much content. Inspired by the guidelines, today's post is about a generic isSmaller function.

Read more
Tags: templates
Views: 10121

C++ Core Guidelines: Template Definitions

Template definitions deal with guidelines that are specific to a template implementation. This means, in particular, these rules focus on how a template definition depends on its context.

Read more
Tags: templates
Views: 14621

C++ Core Guidelines: Surprises with Argument-Dependent Lookup

There is, in particular, one rule left to template interfaces which is quite interesting: T.47: Avoid highly visible unconstrained templates with common names. Admittedly, the rule T47 is often the reason for unexpected behaviour because the wrong function is called.

Read more
Tags: templates
Views: 15828

C++ Core Guidelines: Regular and SemiRegular Types

The topic for today is quite important when you create your type: Regular and SemiRegular types.

Read more
Views: 14535

Meeting Embedded and Meeting C++ 2018

Last week I was at two conferences in Berlin: Meeting Embedded and Meeting C++. Here are my impressions from both conferences.

Read more
Views: 16828

C++ Core Guidelines: Template Interfaces

This post is about template interfaces which are due to the C++ core guidelines: "...a critical concept", because a template interface is "a contract between a user and an implementer - and should be carefully designed.".

Read more
Tags: templates
Views: 27928

C++ Core Guidelines: Pass Function Objects as Operations

An interface is a contract between a user and an implementer and should, therefore, be written with great care. This holds also true if you pass an operation as an argument.

Read more
Views: 15618

I'm Proud to Present: The C++ Standard Library including C++14 & C++17

Based on my book "The C++ Standard Library" educative.io created an interactive course. You can have it now at a discount.

"C++ Standard Library including C++14 & C++17" is a interactive journey through the current C++ standard Library.

Read more
Views: 10850

C++ Core Guidelines: Definition of Concepts, the Second

Let me continue with the rules for defining concepts in the guidelines. In this post, the first of the three remaining rules is quite sophisticated.

Read more
Views: 12987

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)

Course: C++ Fundamentals for Professionals

Subscribe to the newsletter (+ pdf bundle)

Blog archive

Source Code

Visitors

Today 560

All 4179367

Currently are 104 guests and no members online

Kubik-Rubik Joomla! Extensions

Latest comments