Common Standard Concepts Integral Ranges
Use standard library concepts like integral and ranges::range.
The Standard Concept Library
C++20 introduced many standard concepts in <concepts> and <ranges>. Knowing them saves writing your own.
Core Language Concepts
The fundamental concepts:
std::same_as<T, U>std::derived_from<T, U>std::convertible_to<T, U>std::common_with<T, U>std::assignable_from<T, U>
All lessons in this course
- Why Concepts vs SFINAE
- Defining Concepts with requires
- Using Concepts in Templates and auto
- Common Standard Concepts Integral Ranges