Add SmallVector::{capacity,set_size}.
authorDaniel Dunbar <daniel@zuster.org>
Wed, 19 Aug 2009 17:48:28 +0000 (17:48 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Wed, 19 Aug 2009 17:48:28 +0000 (17:48 +0000)
commitc2da6fb3e50902daf670fe83b8b017a2bcba05df
tree07fc575b0ec55a5af765e6a46b4819e28eecfc39
parentf7e8b5c72245e2dc97539009236c651a814d909f
Add SmallVector::{capacity,set_size}.
 - These allow clients to make use of the extra elements in the vector which
   have already been allocated, without requiring them to be value initialized.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79433 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/SmallVector.h
unittests/ADT/SmallVectorTest.cpp