You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@trafficserver.apache.org by GitBox <gi...@apache.org> on 2021/05/19 14:34:57 UTC

[GitHub] [trafficserver] zwoop commented on pull request #7848: Remove bucket search from IntrusiveHashMap::erase

zwoop commented on pull request #7848:
URL: https://github.com/apache/trafficserver/pull/7848#issuecomment-844165783


   I'm confused ... There is a 
   
   ```
   template <typename H>
   auto
   IntrusiveHashMap<H>::erase(iterator const &loc) -> iterator
   ```
   
   Which does what you want here I think ? Why not change the call where you ran into this (where you know it's in the container), and call with the iterator argument instead? And leave the ::erase(value) as-is ?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org