Method Add
Add(ref IPriorityQueueHandle<T>, T)
Add an item to the priority queue, receiving a handle for the item in the queue, or reusing an existing unused handle.
Declaration
bool Add(ref IPriorityQueueHandle<T> handle, T item)
Parameters
Type | Name | Description |
---|---|---|
IPriorityQueueHandle<T> | handle | On output: a handle for the added item. On input: null for allocating a new handle, or a currently unused handle for reuse. A handle for reuse must be compatible with this priority queue, by being created by a priority queue of the same runtime type, but not necessarily the same priority queue object. |
T | item |
Returns
Type | Description |
---|---|
System.Boolean |