IPriorityQueue<TValue,TCont> 介面

定義

定義 STL/CLR priority_queue 物件的介面。

generic <typename TValue, typename TCont>
public interface class IPriorityQueue : ICloneable
public interface IPriorityQueue<TValue,TCont> : ICloneable
type IPriorityQueue<'Value, 'Cont> = interface
    interface ICloneable
Public Interface IPriorityQueue(Of TValue, TCont)
Implements ICloneable

類型參數

TValue

受控制序列中項目的類型。

TCont

基礎容器的類型。

實作

屬性

top_item

存取容器最高優先順序的項目。

方法

assign(IPriorityQueue<TValue,TCont>)

取代容器的所有項目。

Clone()

建立目前執行個體複本的新物件。

(繼承來源 ICloneable)
empty()

判斷容器是否不含項目。

get_container()

存取基礎容器。

pop()

移除容器的最高優先順序項目。

push(TValue)

將新的項目新增至容器。

size()

計算容器中的項目數目。

top()

存取容器最高優先順序的項目。

value_comp()

複製兩個項目的排序委派。

適用於