mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
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:
parent
25259a3149
commit
f5e42bfed1
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user