Skip to content

quuxplusone What is Type Erasure?

NOTE:

1、这篇文章,内容一般

C++ type erasure is not Java type erasure

First of all, in some languages, such as Java, “type erasure” means something completely different. In Java, it means the procedure applied by the compiler when you write a “generic” function — which looks deceptively similar to a C++ template, but is not a template!