...

/

Predefined Concepts

Predefined Concepts

Let's dive deep into predefined concepts of C++20 in this lesson.

Before moving on to predefined concepts, let’s get to know about Syntactic Sugar.

Syntactic Sugar: This is from Wikipedia: In computer science, syntactic sugar is syntax within a programming language that is designed to make things easier to read or to express. It makes the language sweeter for human use: things can be expressed more clearly, more concisely, or in an alternative style that some may prefer.

Predefined Concept

We should use the predefined concepts. cppreference.com gives a great introduction to predefined concepts. Here are a few of them:

  • Core language concepts

    • Same
    • DerivedFrom
...
  • Object concepts

    • Destructible
    • Constructible</
...