boostorg / heap

Boost.Heap
https://boost.org/libs/heap
18 stars 39 forks source link

boost::heap::fibonacci_heap::contains (or equal_range) #34

Closed vinipsmaker closed 10 months ago

vinipsmaker commented 1 year ago

Would it be feasible to add contains() member function to boost::heap::fibonacci_heap? I'm using this structure to store shared pointers that are also tracked in different structures and sometimes I have to check whether a certain element has already been processed.

timblechmann commented 10 months ago

not efficiently (i.e. not without an additional lookup table, which is out of the scope of this library)