Add a default parameter to a SmallVector constructor to allow it to

be called with just an initial length value, just like in std::vector.

llvm-svn: 37779
This commit is contained in:
Dan Gohman 2007-06-28 20:27:24 +00:00
parent b2c3a67015
commit 5f1a2052cd
1 changed files with 1 additions and 1 deletions

View File

@ -442,7 +442,7 @@ public:
SmallVector() : SmallVectorImpl<T>(NumTsAvailable) {
}
SmallVector(unsigned Size, const T &Value)
SmallVector(unsigned Size, const T &Value = T())
: SmallVectorImpl<T>(NumTsAvailable) {
this->reserve(Size);
while (Size--)