Concepts in C++20: An Evolution or a Revolution?

Let me conclude my series to concepts with this meta-post. Are concepts an evolution or a revolution in C++? The answer to this question bothered me quite a time.

Read more
Tags: concepts
Views: 16624

C++20: Define the Concept Regular and SemiRegular

When you want to define a concrete type that works well in the C++ ecosystem, you should define a type that "behaves link an int". Formally, your concrete type should be a regular type. In this post, I define the concepts Regular and SemiRegular.

Read more
Tags: concepts
Views: 5093

C++20: Define the Concepts Equal and Ordering

In my last post, I defined the concept Equal. Now, I go one step further and use the concept Equal to define the concept Ordering.

Read more
Tags: concepts
Views: 4523

C++20: Define Concepts

With this post, I start my last very exciting topic to concepts: define your concepts. Consequentially, I answer the questions I opened in previous posts.

Read more
Tags: concepts
Views: 9653

C++20: Concepts - Predefined Concepts

C++20 has many predefined concepts. Consequentially, before you define your concept, you should know the existing ones. This post gives you an overview of the predefined concepts. To get the general idea of concepts, read my previous posts

Read more
Tags: concepts
Views: 16066

C++20: Concepts - What we don't get

The Template Introduction from the Concepts TS is a new way to use concepts. This syntactic variant is not included in the Concepts Draft and, therefore, in the C++20 standard. But, I don't know what the farther away future brings.

Read more
Tags: concepts
Views: 7949

C++20: Concepts - Syntactic Sugar

Today, my post is not about something new to concepts. It's about syntactic sugar. I write about abbreviated function templates. What? Abbreviated functions templates allow a sweet way to define templates.

Read more
Tags: concepts
Views: 8467

C++20: Concepts, the Placeholder Syntax

Today, I have a simple answer to a challenging question: Where can I use my concept? Concepts can be used where auto is usable.

Read more
Views: 8755

A Brief Overview of the PVS-Studio Static Code Analyzer

During one of C++Russia conferences, I got acquainted with the team, developing the PVS-Studio code analyzer. Right now, I'd like to hand it over to them. They will make a small overview of this amazing tool, give a few useful links. In addition, they promised to provide you with a small bonus.

Read more
Views: 5474

C++20: Concepts, the Details

In my last post C++20: Two Extremes and the Rescue with Concepts, I gave the first motivation for concepts. Concepts put semantic constraints on template parameters. Today, I present different use-cases for concepts in a compact form.

Read more
Tags: concepts
Views: 21239

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 3653

All 3920263

Currently are 195 guests and no members online

Kubik-Rubik Joomla! Extensions

Latest comments