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 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
511 typedef typename HashMap<T, U, V, W, X, Y>::const_iterator::ValuesIterator i
terator; | 511 typedef typename HashMap<T, U, V, W, X, Y>::const_iterator::ValuesIterator i
terator; |
512 | 512 |
513 vector.resize(collection.size()); | 513 vector.resize(collection.size()); |
514 | 514 |
515 iterator it = collection.begin().values(); | 515 iterator it = collection.begin().values(); |
516 iterator end = collection.end().values(); | 516 iterator end = collection.end().values(); |
517 for (unsigned i = 0; it != end; ++it, ++i) | 517 for (unsigned i = 0; it != end; ++it, ++i) |
518 vector[i] = *it; | 518 vector[i] = *it; |
519 } | 519 } |
520 | 520 |
521 #if !ENABLE(OILPAN) | |
522 template <typename T, typename U, typename V, typename W, typename X> | |
523 struct NeedsTracing<HashMap<T, U, V, W, X>> { | |
524 STATIC_ONLY(NeedsTracing); | |
525 static const bool value = false; | |
526 }; | |
527 #endif | |
528 | |
529 } // namespace WTF | 521 } // namespace WTF |
530 | 522 |
531 using WTF::HashMap; | 523 using WTF::HashMap; |
532 | 524 |
533 #endif // WTF_HashMap_h | 525 #endif // WTF_HashMap_h |
OLD | NEW |