On Thu, Nov 11, 2004 at 11:36:42 +0000, Catalin Marinas wrote:
C is a language where you might have to implement a lot of things
yourself. In C++, things are a bit different. You need a list, just
use the STL or some other template library (Boost). If, after
profiling your code, you realise that this list is slow you can easily
change it (providing that you had some rules like using typedefs
etc.). You might not have this option in a HLL.
Replacing eg. STL list with a Boost one rarely wins much. What wins much
is replacing eg. list with a vector -- generaly with a different
structure with more appropriate asymptotic behaviour. Reasonable HLLs
give you this choice.