| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 764 template <typename U> void append(U&&); | 764 template <typename U> void append(U&&); |
| 765 template <typename U> void uncheckedAppend(U&& val); | 765 template <typename U> void uncheckedAppend(U&& val); |
| 766 template <typename U, size_t otherCapacity, typename V> void appendVector(co
nst Vector<U, otherCapacity, V>&); | 766 template <typename U, size_t otherCapacity, typename V> void appendVector(co
nst Vector<U, otherCapacity, V>&); |
| 767 | 767 |
| 768 template <typename U> void insert(size_t position, const U*, size_t); | 768 template <typename U> void insert(size_t position, const U*, size_t); |
| 769 template <typename U> void insert(size_t position, U&&); | 769 template <typename U> void insert(size_t position, U&&); |
| 770 template <typename U, size_t c, typename V> void insert(size_t position, con
st Vector<U, c, V>&); | 770 template <typename U, size_t c, typename V> void insert(size_t position, con
st Vector<U, c, V>&); |
| 771 | 771 |
| 772 template <typename U> void prepend(const U*, size_t); | 772 template <typename U> void prepend(const U*, size_t); |
| 773 template <typename U> void prepend(U&&); | 773 template <typename U> void prepend(U&&); |
| 774 template <typename U, size_t c, typename V> void prepend(const Vector<U, c,
V>&); | 774 template <typename U, size_t c, typename V> void prependVector(const Vector<
U, c, V>&); |
| 775 | 775 |
| 776 void remove(size_t position); | 776 void remove(size_t position); |
| 777 void remove(size_t position, size_t length); | 777 void remove(size_t position, size_t length); |
| 778 | 778 |
| 779 void removeLast() | 779 void removeLast() |
| 780 { | 780 { |
| 781 ASSERT(!isEmpty()); | 781 ASSERT(!isEmpty()); |
| 782 shrink(size() - 1); | 782 shrink(size() - 1); |
| 783 } | 783 } |
| 784 | 784 |
| (...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1279 | 1279 |
| 1280 template <typename T, size_t inlineCapacity, typename Allocator> | 1280 template <typename T, size_t inlineCapacity, typename Allocator> |
| 1281 template <typename U> | 1281 template <typename U> |
| 1282 inline void Vector<T, inlineCapacity, Allocator>::prepend(U&& val) | 1282 inline void Vector<T, inlineCapacity, Allocator>::prepend(U&& val) |
| 1283 { | 1283 { |
| 1284 insert(0, std::forward<U>(val)); | 1284 insert(0, std::forward<U>(val)); |
| 1285 } | 1285 } |
| 1286 | 1286 |
| 1287 template <typename T, size_t inlineCapacity, typename Allocator> | 1287 template <typename T, size_t inlineCapacity, typename Allocator> |
| 1288 template <typename U, size_t c, typename V> | 1288 template <typename U, size_t c, typename V> |
| 1289 inline void Vector<T, inlineCapacity, Allocator>::prepend(const Vector<U, c, V>&
val) | 1289 inline void Vector<T, inlineCapacity, Allocator>::prependVector(const Vector<U,
c, V>& val) |
| 1290 { | 1290 { |
| 1291 insert(0, val.begin(), val.size()); | 1291 insert(0, val.begin(), val.size()); |
| 1292 } | 1292 } |
| 1293 | 1293 |
| 1294 template <typename T, size_t inlineCapacity, typename Allocator> | 1294 template <typename T, size_t inlineCapacity, typename Allocator> |
| 1295 inline void Vector<T, inlineCapacity, Allocator>::remove(size_t position) | 1295 inline void Vector<T, inlineCapacity, Allocator>::remove(size_t position) |
| 1296 { | 1296 { |
| 1297 RELEASE_ASSERT(position < size()); | 1297 RELEASE_ASSERT(position < size()); |
| 1298 T* spot = begin() + position; | 1298 T* spot = begin() + position; |
| 1299 spot->~T(); | 1299 spot->~T(); |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1381 STATIC_ONLY(NeedsTracing); | 1381 STATIC_ONLY(NeedsTracing); |
| 1382 static const bool value = false; | 1382 static const bool value = false; |
| 1383 }; | 1383 }; |
| 1384 #endif | 1384 #endif |
| 1385 | 1385 |
| 1386 } // namespace WTF | 1386 } // namespace WTF |
| 1387 | 1387 |
| 1388 using WTF::Vector; | 1388 using WTF::Vector; |
| 1389 | 1389 |
| 1390 #endif // WTF_Vector_h | 1390 #endif // WTF_Vector_h |
| OLD | NEW |