| 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 777 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 788 template<typename Iterator> void appendRange(Iterator start, Iterator en
d); | 788 template<typename Iterator> void appendRange(Iterator start, Iterator en
d); |
| 789 | 789 |
| 790 void swap(Vector& other) | 790 void swap(Vector& other) |
| 791 { | 791 { |
| 792 Base::swapVectorBuffer(other); | 792 Base::swapVectorBuffer(other); |
| 793 std::swap(m_size, other.m_size); | 793 std::swap(m_size, other.m_size); |
| 794 } | 794 } |
| 795 | 795 |
| 796 void reverse(); | 796 void reverse(); |
| 797 | 797 |
| 798 typedef int HasInlinedTraceMethodMarker; | |
| 799 template<typename VisitorDispatcher> void trace(VisitorDispatcher); | 798 template<typename VisitorDispatcher> void trace(VisitorDispatcher); |
| 800 | 799 |
| 801 private: | 800 private: |
| 802 void expandCapacity(size_t newMinCapacity); | 801 void expandCapacity(size_t newMinCapacity); |
| 803 const T* expandCapacity(size_t newMinCapacity, const T*); | 802 const T* expandCapacity(size_t newMinCapacity, const T*); |
| 804 template<typename U> U* expandCapacity(size_t newMinCapacity, U*); | 803 template<typename U> U* expandCapacity(size_t newMinCapacity, U*); |
| 805 void shrinkCapacity(size_t newCapacity); | 804 void shrinkCapacity(size_t newCapacity); |
| 806 template<typename U> void appendSlowCase(const U&); | 805 template<typename U> void appendSlowCase(const U&); |
| 807 | 806 |
| 808 using Base::m_size; | 807 using Base::m_size; |
| (...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1337 struct NeedsTracing<Vector<T, N>> { | 1336 struct NeedsTracing<Vector<T, N>> { |
| 1338 static const bool value = false; | 1337 static const bool value = false; |
| 1339 }; | 1338 }; |
| 1340 #endif | 1339 #endif |
| 1341 | 1340 |
| 1342 } // namespace WTF | 1341 } // namespace WTF |
| 1343 | 1342 |
| 1344 using WTF::Vector; | 1343 using WTF::Vector; |
| 1345 | 1344 |
| 1346 #endif // WTF_Vector_h | 1345 #endif // WTF_Vector_h |
| OLD | NEW |