3 ms·
Templates are generics.
by IshKebab 8y ago
Templates are generics.
- gameswithgo 8y agoThey are sort of a superset of generics.
- int_19h 8y agoThey're in that weird middle ground between macros and generics, but arguably still closer to macros. The original pre-Standard C++ templates were pure macros. Then two-phase lookup was added in C++98, which muddied the water.