projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c418570
)
Add the ability to initialize a StringSet from a pair of iterators (NFC)
author
Mehdi Amini
<mehdi.amini@apple.com>
Wed, 10 Feb 2016 23:24:21 +0000
(23:24 +0000)
committer
Mehdi Amini
<mehdi.amini@apple.com>
Wed, 10 Feb 2016 23:24:21 +0000
(23:24 +0000)
From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 260461
llvm/include/llvm/ADT/StringSet.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/ADT/StringSet.h
b/llvm/include/llvm/ADT/StringSet.h
index
08626dc
..
c32c2a4
100644
(file)
--- a/
llvm/include/llvm/ADT/StringSet.h
+++ b/
llvm/include/llvm/ADT/StringSet.h
@@
-33,6
+33,12
@@
namespace llvm {
assert(!Key.empty());
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'));
+ }
};
}