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