Some questions about Vector in STL

Posted by skydoor on Stack Overflow See other posts from Stack Overflow or by skydoor
Published on 2010-03-21T21:25:58Z Indexed on 2010/03/21 21:41 UTC
Read the original article Hit count: 358

Filed under:
|
|

I have some questions about vector in STL to clarify.....

  1. Where are the objects in vector allocated? heap?

  2. does vector have boundary check? If the index out of the boundary, what error will happen?

  3. Why array is faster than vector?

  4. Is there any case in which vector is not applicable but array is a must?

© Stack Overflow or respective owner

Related posts about c++

Related posts about stl