You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see that std::priority_queue doesn't have the required Remove method. Googling the stackoverflow to learn how people live with that in C++ land got this: people sometimes use std::set for that, if queue can't keep element multiple times. It has erase method to remove something. Underlying structure is then a binary tree instead of heap, allowing faster removal without repacking everything.
Hope this helps, feel free to ignore, any comment why is it bad idea if it is would be appreciated.
I see that std::priority_queue doesn't have the required Remove method. Googling the stackoverflow to learn how people live with that in C++ land got this: people sometimes use std::set for that, if queue can't keep element multiple times. It has
erase
method to remove something. Underlying structure is then a binary tree instead of heap, allowing faster removal without repacking everything.Hope this helps, feel free to ignore, any comment why is it bad idea if it is would be appreciated.
hmm/src/triangulator.cpp
Line 303 in 0e0fdaa
The text was updated successfully, but these errors were encountered: