| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2005, 2006, 2007, 2008, 2011 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 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 598 return MappedTraits::peek(entry->value); | 598 return MappedTraits::peek(entry->value); |
| 599 } | 599 } |
| 600 | 600 |
| 601 template <typename T, | 601 template <typename T, |
| 602 typename U, | 602 typename U, |
| 603 typename V, | 603 typename V, |
| 604 typename W, | 604 typename W, |
| 605 typename X, | 605 typename X, |
| 606 typename Y> | 606 typename Y> |
| 607 inline void HashMap<T, U, V, W, X, Y>::erase(iterator it) { | 607 inline void HashMap<T, U, V, W, X, Y>::erase(iterator it) { |
| 608 m_impl.remove(it.m_impl); | 608 m_impl.erase(it.m_impl); |
| 609 } | 609 } |
| 610 | 610 |
| 611 template <typename T, | 611 template <typename T, |
| 612 typename U, | 612 typename U, |
| 613 typename V, | 613 typename V, |
| 614 typename W, | 614 typename W, |
| 615 typename X, | 615 typename X, |
| 616 typename Y> | 616 typename Y> |
| 617 inline void HashMap<T, U, V, W, X, Y>::erase(KeyPeekInType key) { | 617 inline void HashMap<T, U, V, W, X, Y>::erase(KeyPeekInType key) { |
| 618 erase(find(key)); | 618 erase(find(key)); |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 737 iterator end = collection.end().values(); | 737 iterator end = collection.end().values(); |
| 738 for (unsigned i = 0; it != end; ++it, ++i) | 738 for (unsigned i = 0; it != end; ++it, ++i) |
| 739 vector[i] = *it; | 739 vector[i] = *it; |
| 740 } | 740 } |
| 741 | 741 |
| 742 } // namespace WTF | 742 } // namespace WTF |
| 743 | 743 |
| 744 using WTF::HashMap; | 744 using WTF::HashMap; |
| 745 | 745 |
| 746 #endif // WTF_HashMap_h | 746 #endif // WTF_HashMap_h |
| OLD | NEW |