forked from OSchip/llvm-project
parent
7a63e7a7ad
commit
245ed94b76
|
@ -418,6 +418,13 @@ public:
|
|||
SmallVector() : SmallVectorImpl<T>(NumTsAvailable) {
|
||||
}
|
||||
|
||||
SmallVector(unsigned Size, const T &Value)
|
||||
: SmallVectorImpl<T>(NumTsAvailable) {
|
||||
this->reserve(Size);
|
||||
while (Size--)
|
||||
push_back(Value);
|
||||
}
|
||||
|
||||
template<typename ItTy>
|
||||
SmallVector(ItTy S, ItTy E) : SmallVectorImpl<T>(NumTsAvailable) {
|
||||
append(S, E);
|
||||
|
|
Loading…
Reference in New Issue