| 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 900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 911 reverse_iterator rend() { return reverse_iterator(begin()); } | 911 reverse_iterator rend() { return reverse_iterator(begin()); } |
| 912 const_reverse_iterator rbegin() const { | 912 const_reverse_iterator rbegin() const { |
| 913 return const_reverse_iterator(end()); | 913 return const_reverse_iterator(end()); |
| 914 } | 914 } |
| 915 const_reverse_iterator rend() const { | 915 const_reverse_iterator rend() const { |
| 916 return const_reverse_iterator(begin()); | 916 return const_reverse_iterator(begin()); |
| 917 } | 917 } |
| 918 | 918 |
| 919 T& first() { return at(0); } | 919 T& first() { return at(0); } |
| 920 const T& first() const { return at(0); } | 920 const T& first() const { return at(0); } |
| 921 T& last() { return at(size() - 1); } | 921 T& back() { return at(size() - 1); } |
| 922 const T& last() const { return at(size() - 1); } | 922 const T& back() const { return at(size() - 1); } |
| 923 | 923 |
| 924 template <typename U> | 924 template <typename U> |
| 925 bool contains(const U&) const; | 925 bool contains(const U&) const; |
| 926 template <typename U> | 926 template <typename U> |
| 927 size_t find(const U&) const; | 927 size_t find(const U&) const; |
| 928 template <typename U> | 928 template <typename U> |
| 929 size_t reverseFind(const U&) const; | 929 size_t reverseFind(const U&) const; |
| 930 | 930 |
| 931 void shrink(size_t); | 931 void shrink(size_t); |
| 932 void grow(size_t); | 932 void grow(size_t); |
| (...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1605 visitor, *const_cast<T*>(bufferEntry)); | 1605 visitor, *const_cast<T*>(bufferEntry)); |
| 1606 checkUnusedSlots(buffer() + size(), buffer() + capacity()); | 1606 checkUnusedSlots(buffer() + size(), buffer() + capacity()); |
| 1607 } | 1607 } |
| 1608 } | 1608 } |
| 1609 | 1609 |
| 1610 } // namespace WTF | 1610 } // namespace WTF |
| 1611 | 1611 |
| 1612 using WTF::Vector; | 1612 using WTF::Vector; |
| 1613 | 1613 |
| 1614 #endif // WTF_Vector_h | 1614 #endif // WTF_Vector_h |
| OLD | NEW |