Changeset 07eaeea in mainline for uspace/lib/cpp/include/__bits/adt/hash_table.hpp
- Timestamp:
- 2018-07-05T21:41:25Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3ae7827
- Parents:
- 65ee021
- git-author:
- Dzejrou <dzejrou@…> (2018-07-03 18:04:10)
- git-committer:
- Dzejrou <dzejrou@…> (2018-07-05 21:41:25)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/cpp/include/__bits/adt/hash_table.hpp
r65ee021 r07eaeea 212 212 iterator erase(const_iterator it) 213 213 { 214 if (it == cend()) 215 return end(); 216 214 217 auto node = it.node(); 215 218 auto idx = it.idx(); … … 234 237 delete node; 235 238 236 return res; 239 if (empty()) 240 return end(); 241 else 242 return res; 237 243 } 238 244 … … 282 288 current = current->next; 283 289 } 284 while (current != head);290 while (current && current != head); 285 291 286 292 return end();
Note:
See TracChangeset
for help on using the changeset viewer.