add missing ctor

llvm-svn: 33714
This commit is contained in:
Chris Lattner 2007-01-31 20:08:34 +00:00
parent 7a63e7a7ad
commit 245ed94b76
1 changed files with 7 additions and 0 deletions

View File

@ -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);