Jason Heyes said:
What harmful effects can using std::vector have on the performance of my
program? How do I protect my program from these effects? Thanks.
On most implementations, perfomance is similar to an array, but it should
not be hard to code a little test to find out how your particular
implementation measures up... The advantages of using a vector (like safety
from memory management problems and the like) far outweigh any perfomance
penalties for all but the most time-critical applications.
HTH,
S. Armondi