4 ms·
What about templates? For some reason, C programmers only seem to comment about the OO parts of C++ and never talk about templates. When you bring variadic temp
by checker659 11y ago
What about templates? For some reason, C programmers only seem to comment about the OO parts of C++ and never talk about templates. When you bring variadic templates into the mix, it's just more awesomeness.
And, before you mention it, use clang to avoid getting the page long templates related errors.
- bluetomcat 11y agoI haven't seen much template wizardry in the C++ codebases I've worked on. It can generally be seen in the standard headers. Type-generic data containers can still be implemented with void pointers and very little runtime overhead, for example: http://lxr.nginx.org/source/src/core/ngx_array.h http://lxr.nginx.org/source/src/core/ngx_array.h
- detrino 11y agoYou cannot implement cache efficient data structures using void pointers.