/// recursively visit all nodes, in left-to-right order
template <class Visitor> void visit(Visitor &v) const;
- size_t elements;
private:
mutable SplayNode<V> * head;
+ size_t elements;
};
SQUIDCEXTERN int splayLastResult;
void
Splay<V>::insert(Value const &value, SPLAYCMP *compare)
{
- assert (!find (value, compare));
+ assert (find (value, compare) == NULL);
if (head == NULL)
head = new SplayNode<V>(value);
else