Hacker News new | ask | show | jobs
by remexre 1124 days ago
You can't specialize a generic algorithm for specific operations and data structures; in C++ terms, it gives you overloading, not templates.
1 comments

It gives generic programming. C++ templates aren't the only possible implementation.
So where is a generic vector data structure written in plain C that is efficient (that is, doesn’t store pointers to elements).