forked from OSchip/llvm-project
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:
parent
b2c3a67015
commit
5f1a2052cd
|
@ -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--)
|
||||
|
|
Loading…
Reference in New Issue