add a range insertion method to SmallSet.

llvm-svn: 70817
This commit is contained in:
Chris Lattner 2009-05-04 02:19:15 +00:00
parent 4ddeb20743
commit 0fc8a35fb8
1 changed files with 6 additions and 0 deletions

View File

@ -76,6 +76,12 @@ public:
return true;
}
template <typename IterT>
void insert(IterT I, IterT E) {
for (; I != E; ++I)
insert(*I);
}
bool erase(const T &V) {
if (!isSmall())
return Set.erase(V);