Add a clear method to SmallVector

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29542 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2006-08-07 05:45:34 +00:00
parent 25259a3149
commit f5e42bfed1

View File

@ -125,6 +125,13 @@ public:
End->~T();
}
void clear() {
while (End != Begin) {
End->~T();
--End;
}
}
/// append - Add the specified range to the end of the SmallVector.
///
template<typename in_iter>