some qeustions about Vector in STL
- by skydoor
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?