get if data_id is in the hashset
| 79 | |
| 80 | // get if data_id is in the hashset |
| 81 | [[nodiscard]] bool get(PID data_id) const { |
| 82 | PID val = this->table_[hash1(data_id)]; |
| 83 | if (val == data_id) { |
| 84 | return true; |
| 85 | } |
| 86 | return (val != kPidMax && stl_hash_.find(data_id) != stl_hash_.end()); |
| 87 | } |
| 88 | |
| 89 | void set(PID data_id) { |
| 90 | PID& val = table_[hash1(data_id)]; |
no test coverage detected