0Pricing
C++ Academy · Lesson

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

  1. Why Concepts vs SFINAE
  2. Defining Concepts with requires
  3. Using Concepts in Templates and auto
  4. Common Standard Concepts Integral Ranges
← Back to C++ Academy