| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2005, 2006, 2007, 2008, 2011, 2012 Apple Inc. All rights | 2 * Copyright (C) 2005, 2006, 2007, 2008, 2011, 2012 Apple Inc. All rights |
| 3 * reserved. | 3 * reserved. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
| 14 * | 14 * |
| 15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
| 16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
| 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
| 19 * | 19 * |
| 20 */ | 20 */ |
| 21 | 21 |
| 22 #ifndef WTF_HashTraits_h | 22 #ifndef WTF_HashTraits_h |
| 23 #define WTF_HashTraits_h | 23 #define WTF_HashTraits_h |
| 24 | 24 |
| 25 #include <string.h> // For memset. |
| 26 #include <limits> |
| 27 #include <memory> |
| 28 #include <type_traits> |
| 29 #include <utility> |
| 25 #include "wtf/Forward.h" | 30 #include "wtf/Forward.h" |
| 26 #include "wtf/HashFunctions.h" | 31 #include "wtf/HashFunctions.h" |
| 27 #include "wtf/HashTableDeletedValueType.h" | 32 #include "wtf/HashTableDeletedValueType.h" |
| 28 #include "wtf/StdLibExtras.h" | 33 #include "wtf/StdLibExtras.h" |
| 29 #include "wtf/TypeTraits.h" | 34 #include "wtf/TypeTraits.h" |
| 30 #include <limits> | |
| 31 #include <memory> | |
| 32 #include <string.h> // For memset. | |
| 33 #include <type_traits> | |
| 34 #include <utility> | |
| 35 | 35 |
| 36 namespace WTF { | 36 namespace WTF { |
| 37 | 37 |
| 38 template <bool isInteger, typename T> | 38 template <bool isInteger, typename T> |
| 39 struct GenericHashTraitsBase; | 39 struct GenericHashTraitsBase; |
| 40 template <typename T> | 40 template <typename T> |
| 41 struct HashTraits; | 41 struct HashTraits; |
| 42 | 42 |
| 43 enum ShouldWeakPointersBeMarkedStrongly { | 43 enum ShouldWeakPointersBeMarkedStrongly { |
| 44 WeakPointersActStrong, | 44 WeakPointersActStrong, |
| (...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 }; | 420 }; |
| 421 | 421 |
| 422 } // namespace WTF | 422 } // namespace WTF |
| 423 | 423 |
| 424 using WTF::HashTraits; | 424 using WTF::HashTraits; |
| 425 using WTF::PairHashTraits; | 425 using WTF::PairHashTraits; |
| 426 using WTF::NullableHashTraits; | 426 using WTF::NullableHashTraits; |
| 427 using WTF::SimpleClassHashTraits; | 427 using WTF::SimpleClassHashTraits; |
| 428 | 428 |
| 429 #endif // WTF_HashTraits_h | 429 #endif // WTF_HashTraits_h |
| OLD | NEW |