mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-02 00:37:09 +00:00
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:
parent
f4b4c416d3
commit
8de353df9d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user