Skip to content

Polymorphic Value Types

1、这主要是由 "Sean Parent: Value Semantics and Concepts-based Polymorphism @ C++ Now! 2012, Aspen, CO "提出的。

2、在 Value-Semantics-and-Concept-based-Polymorphism 章节对 "Sean Parent: Value Semantics and Concepts-based Polymorphism @ C++ Now! 2012, Aspen, CO " 进行了深入分析。

More C++ Idioms/Polymorphic Value Types

Intent

Support run-time polymorphism of value types without requiring inheritance relationship.

NOTE: 这乍一听是违背直觉的

Also Known As

Run-time Concept

Known Uses

Adobe Poly Library

Related Idioms

References

Sean Parent: Value Semantics and Concepts-based Polymorphism @ C++ Now! 2012, Aspen, CO

Inheritance Is The Base Class of Evil