Changeset 26417 in webkit for trunk/JavaScriptCore/wtf/HashTraits.h
- Timestamp:
- Oct 12, 2007, 5:47:57 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/HashTraits.h
r24059 r26417 95 95 }; 96 96 97 template<typename T> struct FloatHashTraits { 98 typedef T TraitType; 99 typedef HashTraits<T> StorageTraits; 100 static T emptyValue() { return std::numeric_limits<T>::infinity(); } 101 static T deletedValue() { return -std::numeric_limits<T>::infinity(); } 102 static const bool emptyValueIsZero = false; 103 static const bool needsDestruction = false; 104 static const bool needsRef = false; 105 }; 106 template<> struct HashTraits<float> : FloatHashTraits<float> { 107 }; 108 template<> struct HashTraits<double> : FloatHashTraits<double> { 109 }; 110 97 111 template<typename P> struct HashTraits<P*> : GenericHashTraits<P*> { 98 112 typedef HashTraits<typename IntTypes<sizeof(P*)>::SignedType> StorageTraits;
Note:
See TracChangeset
for help on using the changeset viewer.