Idioms
Table of Contents
1. Overview
TODO: write introduction for “Idioms”.
2. Details
TODO: expand this section.
Table of contents
- General
- The Copy-and-Swap Idiom
- Partial Function Application
- Argument-Dependent Lookup and the Hidden Friend Idiom
- Classes
- The Rule of Zero or Six
- Regular Types
- Value Objects
- The Null Object Pattern
- The Iterator Protocol
- Covariant Return Type
- Polymorphism
- Idioms for Polymorphism and Templates
- Templates (Idioms)
- Idioms for Polymorphism and Templates (Revisited)