IQueue<TValue,TCont> 接口

定义

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

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

类型参数

TValue

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

TCont

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

实现

方法

assign(IQueue<TValue,TCont>)

用所提供容器的内容替换容器的所有元素。Replaces all elements of the container with the contents of the provided container.

back()

访问容器的最后一个元素。Accesses the last element 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.

front()

访问容器的第一个元素。Accesses the first element of the container.

get_container()

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

pop()

移除容器的最后一个元素。Removes the last element of the container.

push(TValue)

将一个元素添加到容器的开头。Adds an element to the beginning of the container.

size()

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

适用于