Click here to Skip to main content
15,887,214 members
Articles / Programming Languages / C++

Generic Algorithms on Runtime Types in C++ Through Type Erasure

Rate me:
Please Sign up or sign in to vote.
4.87/5 (23 votes)
13 Oct 2017CPOL11 min read 25.7K   31  
This article describes a C++ technique called type erasure and shows that it can be used to write generic algorithms on runtime types. It then examines the relationship between type erasure and other forms of polymorphism through the notion of type compatibility.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions