Inserts 'val' into the set.
| 67 | |
| 68 | // Inserts 'val' into the set. |
| 69 | std::pair<iterator, bool> insert(const IntType& val) { |
| 70 | DCHECK_LT(val, MaxVals); |
| 71 | bool not_present = !contains(val); |
| 72 | if (not_present) { |
| 73 | bitset_.set(static_cast<size_t>(val)); |
| 74 | } |
| 75 | return { iterator(this, static_cast<int>(val)), not_present }; |
| 76 | } |
| 77 | |
| 78 | // Removes 'val' from the set if it exists. |
| 79 | size_t erase(const IntType val) { |