|
PriorityQueueTEnqueue Method
|
Enqueues an item into the queue.
Namespace: GSF.CollectionsAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.218-beta+101eee949414e414795e55a6e73d88938f0177b8
Syntax public void Enqueue(
int priority,
T item
)
Public Sub Enqueue (
priority As Integer,
item As T
)
public:
void Enqueue(
int priority,
T item
)
member Enqueue :
priority : int *
item : 'T -> unit
function Enqueue(priority, item);
View SourceParameters
- priority Int32
- The priority of the item.
- item T
- The item to be enqueued.
Remarks
After adding an item to the queue, the heap will need to be fixed,
therefore this is an O(log n) operation.
See Also