src/cxx_supportlib/DataStructures/StringKeyTable.h in passenger-5.2.1 vs src/cxx_supportlib/DataStructures/StringKeyTable.h in passenger-5.2.2
- old
+ new
@@ -384,9 +384,13 @@
cell = SKT_CIRCULAR_NEXT(cell);
}
}
}
+ bool contains(const HashedStaticString &key) const {
+ return (lookupCell(key) != NULL);
+ }
+
bool lookup(const HashedStaticString &key, const T **result) const {
const Cell * const cell = lookupCell(key);
if (cell != NULL) {
*result = &cell->value;
return true;