IPriorityQueue<TValue,TCont> 接口

定义

定义 STL/CLR priority_queue 对象的接口。Defines the interface for an STL/CLR priority_queue object.

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

受控序列中的元素的类型。The type of an element in the controlled sequence.

TCont

基础容器的类型。The type of the underlying container.

实现

属性

top_item

访问容器中优先级最高的元素。Accesses the highest-priority element of the container.

方法

assign(IPriorityQueue<TValue,TCont>)

替换容器中的所有元素。Replaces all elements of the container.

Clone()

创建作为当前实例副本的新对象。Creates a new object that is a copy of the current instance.

(继承自 ICloneable)
empty()

确定容器是否不包含任何元素。Determines whether the container contains no elements.

get_container()

访问基础容器。Accesses the underlying container.

pop()

移除容器中优先级最高的元素。Removes the highest-priority element of the container.

push(TValue)

将一个新元素添加到容器中。Adds a new element to the container.

size()

计算容器中的元素数。Counts the number of elements in the container.

top()

访问容器中优先级最高的元素。Accesses the highest-priority element of the container.

value_comp()

复制两个元素的排序委托。Copies the ordering delegate for two elements.

适用于