Re: stl performance question

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Ben wrote:
is it more efficient to insert elements at the end of a vector, or at
the beginning?

Removal and insertion anywhere except at the end are rather slow, hence no
push_front and pop_front functions. Other containers have different
characteristics.

Uli

.