| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2005, 2006, 2007, 2008, 2011, 2012 Apple Inc. All rights reserv
ed. | 2 * Copyright (C) 2005, 2006, 2007, 2008, 2011, 2012 Apple Inc. All rights reserv
ed. |
| 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 struct HashTraits<std::pair<First, Second> > : public PairHashTraits<HashTra
its<First>, HashTraits<Second> > { }; | 200 struct HashTraits<std::pair<First, Second> > : public PairHashTraits<HashTra
its<First>, HashTraits<Second> > { }; |
| 201 | 201 |
| 202 template<typename KeyTypeArg, typename ValueTypeArg> | 202 template<typename KeyTypeArg, typename ValueTypeArg> |
| 203 struct KeyValuePair { | 203 struct KeyValuePair { |
| 204 typedef KeyTypeArg KeyType; | 204 typedef KeyTypeArg KeyType; |
| 205 | 205 |
| 206 KeyValuePair() | 206 KeyValuePair() |
| 207 { | 207 { |
| 208 } | 208 } |
| 209 | 209 |
| 210 KeyValuePair(const KeyTypeArg& key, const ValueTypeArg& value) | 210 KeyValuePair(const KeyTypeArg& _key, const ValueTypeArg& _value) |
| 211 : key(key) | 211 : key(_key) |
| 212 , value(value) | 212 , value(_value) |
| 213 { | 213 { |
| 214 } | 214 } |
| 215 | 215 |
| 216 template <typename OtherKeyType, typename OtherValueType> | 216 template <typename OtherKeyType, typename OtherValueType> |
| 217 KeyValuePair(const KeyValuePair<OtherKeyType, OtherValueType>& other) | 217 KeyValuePair(const KeyValuePair<OtherKeyType, OtherValueType>& other) |
| 218 : key(other.key) | 218 : key(other.key) |
| 219 , value(other.value) | 219 , value(other.value) |
| 220 { | 220 { |
| 221 } | 221 } |
| 222 | 222 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 252 }; | 252 }; |
| 253 | 253 |
| 254 } // namespace WTF | 254 } // namespace WTF |
| 255 | 255 |
| 256 using WTF::HashTraits; | 256 using WTF::HashTraits; |
| 257 using WTF::PairHashTraits; | 257 using WTF::PairHashTraits; |
| 258 using WTF::NullableHashTraits; | 258 using WTF::NullableHashTraits; |
| 259 using WTF::SimpleClassHashTraits; | 259 using WTF::SimpleClassHashTraits; |
| 260 | 260 |
| 261 #endif // WTF_HashTraits_h | 261 #endif // WTF_HashTraits_h |
| OLD | NEW |