Concepts in the <concepts> Header - I
Explore key C++20 standard library concepts found in the <concepts> header. Understand how concepts like std::convertible_to and std::totally_ordered enforce type requirements and enable more robust template programming. This lesson helps you grasp fundamental concepts for safer and clearer generic code.
Introduction
This lesson will provide an overview of the different kinds of concepts in the C++ standard library. However, we won’t explore all concepts, just a few important ones in the standard concepts library.
Besides the ability to write powerful concepts, C++20 also gives us more than 50 concepts as part of the standard library. They are shared across three different headers:
<concepts><iterator><ranges>
Concepts in the concepts header
In the concepts header, we’ll find generic concepts that express ...