how is push_back implemented in STL vector?
Posted
by skydoor
on Stack Overflow
See other posts from Stack Overflow
or by skydoor
Published on 2010-04-12T20:04:08Z
Indexed on
2010/04/12
20:13 UTC
Read the original article
Hit count: 355
I was asked this question in an interview.
The points I answered are like this
1) an index pointing to the current position;
2) resize if neccessary.
Can anybody elaborate more?
© Stack Overflow or respective owner