wrote:
>> ...and in some cases your code much much slower...
>
> If your code does need "soooo" much speed then write in assembler! For
> all (most) other categories try using object oriented concepts!
No, thank you. I can live without assembler, since in most cases C++
is very close to it when using low-level constructs like pointers.
Do not underestimate the effects of calling functions unnecessarily.
The indexing operator is a function. It costs you.
Of course one should not downplay the cost of maintaining code. The
lower the level of constructs, the higher the cost of maintenance.
Every time a higher-level construct is replaced with a lower-level one,
the cost of maintenance needs to be incorporated into the decision
making process. But do not blindly dismiss constructs of the language
of which some people don't have a good grasp.
> You can also think about writing containers youself but STL people and
> other libraries doing similar stuff have invested many time over
> years. Decide yourself!
Yes, one always has to decide. And the decision has to be made based
on measuring the performance instead of some arbitrary investment some
arbitrary "STL people" have made.
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask