Browse Source
Fixes a bug in which pop_back did not call the deleted item's destructor. Using the most general erase() implementation to implement all the others prevents similar bugs because the coupling between deallocation and destructor invocation only needs to be maintained in one place. Also reduces duplication of complex memmove logic.0.13
Kaz Wesley
9 years ago
1 changed files with 4 additions and 8 deletions
Loading…
Reference in new issue