Implement IntervalMap destructor.

Key and value objects may not be destructed instantly when they are erased from
the container, but they will be destructed eventually by the IntervalMap
destructor.

llvm-svn: 119873
This commit is contained in:
Jakob Stoklund Olesen 2010-11-19 23:28:59 +00:00
parent c041268c8c
commit 6ae70b2e0f
1 changed files with 5 additions and 0 deletions

View File

@ -848,6 +848,11 @@ public:
new(&rootLeaf()) RootLeaf();
}
~IntervalMap() {
clear();
rootLeaf().~RootLeaf();
}
/// empty - Return true when no intervals are mapped.
bool empty() const {
return rootSize == 0;