Add ctor that initializes from a range.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29560 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2006-08-08 00:37:50 +00:00
parent f4b4c416d3
commit 8de353df9d

View File

@ -51,6 +51,12 @@ public:
SmallVector() : Begin((T*)InlineElts), End(Begin), Capacity(Begin+N) {
}
template<typename ItTy>
SmallVector(ItTy S, ItTy E)
: Begin((T*)InlineElts), End(Begin), Capacity(Begin+N) {
append(S, E);
}
SmallVector(const SmallVector &RHS) {
unsigned RHSSize = RHS.size();
Begin = (T*)InlineElts;