Lines Matching refs:set
72 // set(), find() and foreach() all allow mutable access to table entries.
78 // The pointers returned by set() and find() are valid only until the next call to set().
83 T* set(T val) {
425 // N.B. The pointers returned by set() and find() are valid only until the next call to set().
429 V* set(K key, V val) {
430 Pair* out = fTable.set({std::move(key), std::move(val)});
447 return *this->set(key, V{});
489 // A set of T. T is treated as an ordinary copyable C++ type.
493 // Clear the set.
496 // How many items are in the set?
505 // Copy an item into the set.
506 void add(T item) { fTable.set(std::move(item)); }
508 // Is this item in the set?
511 // If an item equal to this is in the set, return a pointer to it, otherwise null.
515 // Remove the item in the set equal to this.
521 // Call fn on every item in the set. You may not mutate anything.