2013年5月28日

how does vector work?

摘要: Currently, I am finding a bug related to meory allocated by vector. I have some findings about the mechanism of vector.0. vector maintains 3 pointers:_M_start,_M_finish, and_M_end_of_storage. At first, vector is empty, i.e._M_start=_M_finish=_M_end_of_storage=NULL.invariant: elements are stored in [ 阅读全文

posted @ 2013-05-28 20:29 Torstan 阅读(224) 评论(0) 推荐(0) 编辑

导航