C++ Core Guidelines: std::array and std::vector are your Friends

In 99 % of your use-cases for a sequential container, you are totally fine with a std::array or a std::vector. What? If you don't believe me, read this post.

Read more
Views: 84440

C++ Core Guidelines: The Standard Library

The rules to the C++ standard library are mainly about containers, strings, and iostreams.

Read more
Views: 18440

More Details to Modules

 My last post gave you the introduction to modules in C++20. This post shows, how to use existing modules.

Read more
Tags: modules
Views: 36718

Modules

Modules are one of the five prominent features of C++20. Modules will overcome the restrictions of header files. They promise a lot. For example, the separation of header and source files becomes as obsolete as the preprocessor. In the end, we will also have faster build times and an easier way to build packages.

Read more
Tags: modules
Views: 146850

C++ Core Guidelines: The Remaining Rules to Source Files

Today, I complete the rules of the C++ core guidelines to source files. They are about header files and namespaces.

Read more
Views: 15133

C++ Core Guidelines: Source Files

The organisation of source files is a topic that is quite seldom addressed in C++. With C++20 we will get modules, but until then we should distinguish between the implementation and the interface of our code.

Read more
Views: 20300

C++ Core Guidelines: Mixing C with C++

Due to the same history of C and C++, both languages are closely related. Because neither of them is a subset of the other, you have to know a few rules to mix them.

Read more
Tags: C
Views: 26578

Types-, Non-Types, and Templates as Template Parameters

I assume you saw the additional keywords type name or template used before a name in a template. Me too. Honestly, I was quite surprised. Today's post is about dependent names and various template parameters.

Read more
Tags: templates
Views: 44900

Templates: Misconceptions and Surprises

I often teach the basics to templates. Templates are special. Therefore, I encounter many misconceptions which cause surprises. Here are a few of them.

Read more
Views: 13733

C++ Core Guidelines: Surprise included with the Specialisation of Function Templates

Today, I finish the C++ core guidelines rules to templates with a big surprise for many C++ developers. I write about the specialisation of function templates.

Read more
Tags: templates
Views: 14882

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 4951

Yesterday 5271

Week 48857

Month 59404

All 6287876

Currently are 193 guests and no members online

Kubik-Rubik Joomla! Extensions

Latest comments