forked from OSchip/llvm-project
add a range insertion method to SmallSet.
llvm-svn: 70817
This commit is contained in:
parent
4ddeb20743
commit
0fc8a35fb8
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue