Changes in directory llvm/include/llvm/ADT:
SmallVector.h updated: 1.6 -> 1.7 --- Log message: Add ctor that initializes from a range. --- Diffs of the changes: (+6 -0) SmallVector.h | 6 ++++++ 1 files changed, 6 insertions(+) Index: llvm/include/llvm/ADT/SmallVector.h diff -u llvm/include/llvm/ADT/SmallVector.h:1.6 llvm/include/llvm/ADT/SmallVector.h:1.7 --- llvm/include/llvm/ADT/SmallVector.h:1.6 Mon Aug 7 18:41:59 2006 +++ llvm/include/llvm/ADT/SmallVector.h Mon Aug 7 19:37:50 2006 @@ -51,6 +51,12 @@ 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; _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits