updatable_priority_queue icon indicating copy to clipboard operation
updatable_priority_queue copied to clipboard

A `contains` function

Open FireflyInTheDusk opened this issue 7 months ago • 1 comments

Thanks a lot for the lib, it came in clutch while writing pathfinding 😄

It seems to lack a quick way to check if a key is present in the queue or not, besides bool exists = queue.get_priority(key).first.

Let me know if this is something you'd like to add, I added one in my fork and could PR it.

https://github.com/FireflyInTheDusk/updatable_priority_queue/commit/43132867e3169ea11fbdf9ea5a592a5020f39392

FireflyInTheDusk avatar Jun 20 '25 13:06 FireflyInTheDusk