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> > { };
Definition: HashTraits.h:35
static void constructDeletedValue(T *slot)
Definition: HashTraits.h:103
Definition: Forward.h:31
Definition: HashTraits.h:100
pair< typename FirstTraits::TraitType, typename SecondTraits::TraitType > TraitType
Definition: HashTraits.h:129
static bool isDeletedValue(const TraitType &value)
Definition: HashTraits.h:137
Definition: HashTraits.h:93
static bool isDeletedValue(P *value)
Definition: HashTraits.h:114
static void constructDeletedValue(T *slot)
Definition: HashTraits.h:89
static bool isDeletedValue(T value)
Definition: HashTraits.h:90
Definition: RefPtr.h:35
static const bool needsDestruction
Definition: HashTraits.h:101
static void constructDeletedValue(P **slot)
Definition: HashTraits.h:113
static bool isDeletedValue(const RefPtr< P > &value)
Definition: HashTraits.h:120
static void constructDeletedValue(TraitType *slot)
Definition: HashTraits.h:136
Definition: HashTraits.h:126
Definition: HashTraits.h:78
Definition: HashTraits.h:76
static void constructDeletedValue(RefPtr< P > *slot)
Definition: HashTraits.h:119
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:46 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:46 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.