WTF
HashTraits.h
Go to the documentation of this file.
80 template<typename T> struct GenericHashTraitsBase<false, T> {
119 static void constructDeletedValue(RefPtr<P>* slot) { new (slot) RefPtr<P>(HashTableDeletedValue); }
126 struct PairHashTraits : GenericHashTraits<pair<typename FirstTraitsArg::TraitType, typename SecondTraitsArg::TraitType> > {
131 static const bool emptyValueIsZero = FirstTraits::emptyValueIsZero && SecondTraits::emptyValueIsZero;
132 static TraitType emptyValue() { return make_pair(FirstTraits::emptyValue(), SecondTraits::emptyValue()); }
134 static const bool needsDestruction = FirstTraits::needsDestruction || SecondTraits::needsDestruction;
136 static void constructDeletedValue(TraitType* slot) { FirstTraits::constructDeletedValue(&slot->first); }
137 static bool isDeletedValue(const TraitType& value) { return FirstTraits::isDeletedValue(value.first); }
141 struct HashTraits<pair<First, Second> > : public PairHashTraits<HashTraits<First>, HashTraits<Second> > { };
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Mon Jul 15 2013 13:04:14 by doxygen 1.8.3.1 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2013 The KDE developers.
Generated on Mon Jul 15 2013 13:04:14 by doxygen 1.8.3.1 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.