Traits

Abstraction in Detail: Classes, Templates, and Traits (Part 2)

The C++ Programmer’s Mindset by Sam Morley (ISBN 978-1-83588-842-1, Packt 2025)

Part 1 of Chapter 2 covered problem categories, standard algorithms, and functions as interfaces. This post finishes the chapter: functions inside algorithms, function objects, classes, templates, concepts, and traits.