basics

Template Metaprogramming - How it All Started--Rainer Grimm

The series continue.

Template Metaprogramming - How it All Started

by Rainer Grimm

From the article:

Metaprogramming is programming on programs. C++ applies metaprogramming at compile time. It started in C++98 with template metaprogramming, was formalized in C++11 with the type-traits library, and since C++11 has steadily improved. The main driving force is constant expressions. In this post, I want to write about its roots...

How Meeting C++ can help you to close your C++ knowledge gap

Update your C++ skills with Meeting C++!

How Meeting C++ can help you to close your C++ knowledge gap

by Jens Weller

From the article

With 1.5 years of the pandemic behind us and one more "season" ahead for many of us, I'd like to show you how you can improve your C++ skills with the events organized by Meeting C++!

Meeting C++ organizes many online Events on Hubilo with its Meeting C++ online User Group. This started over a year ago and today it hosts 1 - 2 evenings of C++ content per month. Usually a talk or a fair like the online C++ job fair or the book & tool fair. The next meeting of this User Group is next week, hosting Daisy Hollmans CppCon Talk What you can learn from being too cute: why you should write code that you should never write.

Automatic Return Type (C++98)--Rainer Grimm

The series continue.

Automatic Return Type (C++98)

by Rainer Grimm

From the article:

Depending on the used C++ standard, there are different ways to return the right return type of a function template. In this post, I start with traits (C++98), continue in my next post with C++11/14, and end with concepts (C++20)...

Template Instantiation--Rainer Grimm

The series continue.

Template Instantiation

by Rainer Grimm

From the article:

Template instantiation is the creation of a concrete function or a concrete class out of a function template or class template. The creation of template instantiation can be implicit (compiler-generated) or explicit (user-provided)...

Template Arguments--Rainer Grimm

The series continue.

Template Arguments

by Rainer Grimm

From the article:

It is quite interesting how the compiler deduces the types for the template arguments. To make it short, you get most of the time the type you expect. The rules do not only apply to function templates (C++98) but also to auto (C++11), to class templates (C++17), and concepts (C++20)...

Class Templates--Rainer Grimm

The series continue.

Class Templates

by Rainer Grimm

From the article:

A function template represents a family of functions. Accordingly, a class template represents a family of classes. Today, I want to introduce class templates...