In this Bits of Q tutorial we will be talking about Concepts. Concepts are a C++20 feature that allow you to constrain templates to specific categories of types.
-- TIMESTAMPS --
00:00 - Introduction & Motivation
00:33 - Concepts
00:50 - Anatomy of a concept
01:39 - Constraint expressions
02:47 - Concepts as boolean expressions
04:03 - Concepts with multiple template parameters
05:18 - Concepts to check an interface?
Outro music by lesfm from pixabay.
If you have any questions or feedback, just leave a comment below.
See you next time!
コメント