From 32598fe76c7f5eb228d86cad81157c2038b26089 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=93=E8=88=AA?= <1210603696@qq.com> Date: Tue, 6 Jan 2015 13:42:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E7=BC=BA=E5=B0=91}?= =?UTF-8?q?=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TinySTL/Deque.h | 1 + 1 file changed, 1 insertion(+) diff --git a/TinySTL/Deque.h b/TinySTL/Deque.h index 549559c..8cac90a 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];