The C++ Standard Template Library provides a number of design patterns realized as class templates. These templates must be filled in with specific types in order to satisfy the C++ compiler requirements. We can use this library as a suggestion for common design patterns. We'll look at a few elements of the modern GNU libstdc++ implementation as a representative sample of current thinking from other languages. The website at https://en.cppreference.com/w/ provides a thorough reference.
The intent here is to use this library as a list of suggestions or hints about design patterns. This can provide a perspective on the features available in Python. There is no single, correct, gold standard for class libraries. Any comparison among languages is fraught with difficulties because it can appear as if one language is deficient because of a...