mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
add iterator range version of ctor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34899 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9f3d738866
commit
ab8fea5283
@ -209,6 +209,13 @@ class SmallPtrSet : public SmallPtrSetImpl {
|
||||
public:
|
||||
SmallPtrSet() : SmallPtrSetImpl(NextPowerOfTwo<SmallSizePowTwo>::Val) {}
|
||||
|
||||
template<typename It>
|
||||
SmallPtrSet(It I, It E)
|
||||
: SmallPtrSetImpl(NextPowerOfTwo<SmallSizePowTwo>::Val) {
|
||||
for (; I != E; ++I)
|
||||
insert(*I);
|
||||
}
|
||||
|
||||
typedef SmallPtrSetIterator<PtrType> iterator;
|
||||
typedef SmallPtrSetIterator<PtrType> const_iterator;
|
||||
inline iterator begin() const {
|
||||
|
Loading…
Reference in New Issue
Block a user