diff --git a/TinySTL/Deque.h b/TinySTL/Deque.h index 549559cc7ce4e465fd1e40037f8afb91ed2da35f..8cac90ac56bf8ec17c616acd98c22c2e83fd5106 100644 --- a/TinySTL/Deque.h +++ b/TinySTL/Deque.h @@ -230,6 +230,7 @@ namespace TinySTL{ for (auto i = 0; i != mapSize_; ++i){ for (auto p = map_[i] + 0; !p && p != map_[i] + getBuckSize(); ++p) dataAllocator::destroy(p); + } mapSize_ = 0; beg_.mapIndex_ = end_.mapIndex_ = mapSize_ / 2; beg_.cur_ = end_.cur_ = map_[mapSize_ / 2];