forked from OSchip/llvm-project
Add the ability to initialize a StringSet from a pair of iterators (NFC)
From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 260461
This commit is contained in:
parent
c418570db5
commit
0bfaa589f0
|
@ -33,6 +33,12 @@ namespace llvm {
|
||||||
assert(!Key.empty());
|
assert(!Key.empty());
|
||||||
return base::insert(std::make_pair(Key, '\0'));
|
return base::insert(std::make_pair(Key, '\0'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template <typename InputIt>
|
||||||
|
void insert(const InputIt &Begin, const InputIt &End) {
|
||||||
|
for (auto It = Begin; It != End; ++It)
|
||||||
|
base::insert(std::make_pair(*It, '\0'));
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue