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
Add CommentViews: 1812

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 argument.

Read more
Add CommentViews: 2996

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
Add CommentViews: 3539

C++ Core Guidelines: Rules for the Definition of Concepts

Although rule T.11 states: Whenever possible use standard concepts you sometimes have to define your concepts. This post gives you rules to do it.

Read more
Add CommentViews: 3615

C++ Core Guidelines: Rules for the Usage of Concepts

We will get concepts with high probability in C++20. Here are from the C++ core guidelines the rules to use them.

Read more
Add CommentViews: 4229

C++ Core Guidelines: Better Specific or Generic?

Concepts revolutionise the way we think about and use generic programming. They didn't make it in C++11, or C++17 but with C++20 we will get them with high probability.

Read more
Add CommentViews: 4544

C++ Core Guidelines: Type Erasure with Templates

In the last post C++ Core Guidelines: Type Erasure, I presented two ways to implement type erasure: void pointers and object-orientation. In this post, I bridge dynamic polymorphism (object-orientation) with static polymorphism (templates) to get type erasure with templates.

Read more
Comments 3Views: 4757

C++ Core Guidelines: Type Erasure

,Rule "T.5: Combine generic and OO techniques to amplify their strengths, not their costs"  of the core guidelines to generic programming uses type erasure as an example. Type erasure? Really! Of course, it takes me two posts to explain this advanced template technique.

Read more
Add CommentViews: 16373

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
Comments 1Views: 4424

Subscribe to the newsletter (+ pdf bundle)

Blog archive

Source Code

Visitors

Today 110

All 1240464

Currently are 164 guests and no members online

Kubik-Rubik Joomla! Extensions

Latest comments