4 ms·
I 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 s
by bluetomcat 11y ago
I 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.