- Get link
- X
- Other Apps
39+ Templates Vs Generics PNG. Templates and generics allow us to achieve very similar results using very similar code syntax in c++ and java respectively. Template and generics are really a different thing.
An earlier version of this article was posted briefly, then a reader pointed something out that required rewriting and which lead to other insights.
C++ already had already a similar mechanism called templates. This is the first in a series on c++ generic programming. One can check that value returned is indeed lvalue since you can now do fun2() = 50; C++ templates vs generics in java.
- Get link
- X
- Other Apps
Comments
Post a Comment