mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-01 02:33:44 +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) {
|
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) {
|
SmallVector(const SmallVector &RHS) {
|
||||||
unsigned RHSSize = RHS.size();
|
unsigned RHSSize = RHS.size();
|
||||||
Begin = (T*)InlineElts;
|
Begin = (T*)InlineElts;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user