Method Replace
Replace(IPriorityQueueHandle<T>, T)
Replace an item with a handle in a priority queue with a new item. Typically used for changing the priority of some queued object.
Declaration
T Replace(IPriorityQueueHandle<T> handle, T item)
Parameters
Type | Name | Description |
---|---|---|
IPriorityQueueHandle<T> | handle | The handle for the old item |
T | item | The new item |
Returns
Type | Description |
---|---|
T | The old item |