| 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 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 } | 496 } |
| 497 | 497 |
| 498 ~Vector() | 498 ~Vector() |
| 499 { | 499 { |
| 500 if (m_size) | 500 if (m_size) |
| 501 shrink(0); | 501 shrink(0); |
| 502 } | 502 } |
| 503 | 503 |
| 504 Vector(const Vector&); | 504 Vector(const Vector&); |
| 505 template<size_t otherCapacity> | 505 template<size_t otherCapacity> |
| 506 Vector(const Vector<T, otherCapacity>&); | 506 explicit Vector(const Vector<T, otherCapacity>&); |
| 507 | 507 |
| 508 Vector& operator=(const Vector&); | 508 Vector& operator=(const Vector&); |
| 509 template<size_t otherCapacity> | 509 template<size_t otherCapacity> |
| 510 Vector& operator=(const Vector<T, otherCapacity>&); | 510 Vector& operator=(const Vector<T, otherCapacity>&); |
| 511 | 511 |
| 512 #if COMPILER_SUPPORTS(CXX_RVALUE_REFERENCES) | 512 #if COMPILER_SUPPORTS(CXX_RVALUE_REFERENCES) |
| 513 Vector(Vector&&); | 513 Vector(Vector&&); |
| 514 Vector& operator=(Vector&&); | 514 Vector& operator=(Vector&&); |
| 515 #endif | 515 #endif |
| 516 | 516 |
| (...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1064 inline bool operator!=(const Vector<T, inlineCapacity>& a, const Vector<T, i
nlineCapacity>& b) | 1064 inline bool operator!=(const Vector<T, inlineCapacity>& a, const Vector<T, i
nlineCapacity>& b) |
| 1065 { | 1065 { |
| 1066 return !(a == b); | 1066 return !(a == b); |
| 1067 } | 1067 } |
| 1068 | 1068 |
| 1069 } // namespace WTF | 1069 } // namespace WTF |
| 1070 | 1070 |
| 1071 using WTF::Vector; | 1071 using WTF::Vector; |
| 1072 | 1072 |
| 1073 #endif // WTF_Vector_h | 1073 #endif // WTF_Vector_h |
| OLD | NEW |