![]() ![]() Only iterators and references to the erased elements are invalidated. Only the iterators and references to the erased element is invalidated. But, in case if due to insertion the size of the vector becomes more than the previous capacity then all iterators get invalidated as discussed in the above example.Īll iterators and references are invalidated unless the inserted member is at an end (front or back) of the deque (in which case all iterators are invalidated, but references to elements are unaffected).Īll iterators and references are unaffected.Įvery iterator and reference after the point of erasing is invalidated.Īll iterators and references are invalidated unless the erased members are at an end (front or back) of the deque (in which case only iterators and references to the erased members are invalidated)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |