More C++ Idioms/Polymorphic Value Types

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Polymorphic Value Types
[edit | edit source]

Intent[edit | edit source]

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

Also Known As[edit | edit source]

Run-time Concept

Motivation[edit | edit source]

Solution and Sample Code[edit | edit source]

Known Uses[edit | edit source]

Adobe Poly Library

Related Idioms[edit | edit source]

References[edit | edit source]

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

Inheritance Is The Base Class of Evil