Lines Matching refs:item
505 // Copy an item into the set.
506 void add(T item) { fTable.set(std::move(item)); }
508 // Is this item in the set?
509 bool contains(const T& item) const { return SkToBool(this->find(item)); }
511 // If an item equal to this is in the set, return a pointer to it, otherwise null.
513 const T* find(const T& item) const { return fTable.find(item); }
515 // Remove the item in the set equal to this.
516 void remove(const T& item) {
517 SkASSERT(this->contains(item));
518 fTable.remove(item);
521 // Call fn on every item in the set. You may not mutate anything.
529 static const T& GetKey(const T& item) { return item; }
530 static auto Hash(const T& item) { return HashT()(item); }