Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What happened to using:

  mylist->remove(object);
Let the underlying algorithm take care of it. No need to write out the loop. Also, this makes it easy to then switch to std::vector or a hash based list or something else where walking the list may not be required.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: