IDeque<TValue> IDeque<TValue> IDeque<TValue> IDeque<TValue> Interface

定义

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

generic <typename TValue>
public interface class IDeque : ICloneable, Microsoft::VisualC::StlClr::Generic::IRandomAccessContainer<TValue>, System::Collections::ICollection
public interface IDeque<TValue> : ICloneable, Microsoft.VisualC.StlClr.Generic.IRandomAccessContainer<TValue>, System.Collections.ICollection
type IDeque<'Value> = interface
    interface IRandomAccessContainer<'Value>
    interface ICloneable
    interface ICollection
    interface IEnumerable
Public Interface IDeque(Of TValue)
Implements ICloneable, ICollection, IRandomAccessContainer(Of TValue)

类型参数

TValue

包含的类型。The type that is contained.

实现

注解

有些方法(尤其是运算符)声明参数的类型,但不指定参数名称。Some methods, especially operators, declare a type for a parameter but do not specify a parameter name. 此类参数称为“未命名参数” 。Such a parameter is known as an unnamed parameter. 在这些方法的文档中,__unnamed0 占位符表示未命名参数。In the documentation for these methods, the __unnamed0 placeholder represents the unnamed parameter.

有关详细信息,请参阅deque (STL/CLR)For more information, see deque (STL/CLR).

属性

back_item back_item back_item back_item

访问非空 deque 集合的最后一个元素。Accesses the last element of a non-empty deque collection.

Count Count Count Count

获取 ICollection 中包含的元素数。Gets the number of elements contained in the ICollection.

(Inherited from ICollection)
front_item front_item front_item front_item

访问非空 deque 集合的第一个元素。Accesses the first element of a non-empty deque collection.

IsSynchronized IsSynchronized IsSynchronized IsSynchronized

获取一个值,该值指示是否同步对 ICollection 的访问(线程安全)。Gets a value indicating whether access to the ICollection is synchronized (thread safe).

(Inherited from ICollection)
Item[Int32] Item[Int32] Item[Int32] Item[Int32]

获取或设置容器中指定位置的元素。Gets or sets the element at the indicated position in the container.

SyncRoot SyncRoot SyncRoot SyncRoot

获取可用于同步对 ICollection 的访问的对象。Gets an object that can be used to synchronize access to the ICollection.

(Inherited from ICollection)

方法

assign(IEnumerable) assign(IEnumerable) assign(IEnumerable) assign(IEnumerable)

用给定 IEnumerable 对象中的元素替换容器中的所有元素。Replaces all elements of the container with the elements in the given IEnumerable object.

assign(IInputIterator<TValue>, IInputIterator<TValue>) assign(IInputIterator<TValue>, IInputIterator<TValue>) assign(IInputIterator<TValue>, IInputIterator<TValue>) assign(IInputIterator<TValue>, IInputIterator<TValue>)

用给定 IInputIterator<TValue> 对象指定的元素替换容器中的所有元素。Replaces all elements of the container with the elements specified by the given IInputIterator<TValue> objects.

assign(Int32, TValue) assign(Int32, TValue) assign(Int32, TValue) assign(Int32, TValue)

用给定数量的指定元素替换容器中的所有元素。Replaces all elements of the container with the given number of specified elements.

at(Int32) at(Int32) at(Int32) at(Int32)

访问容器中指定位置的元素。Accesses an element at a specified position in the container.

at_bias(Int32) at_bias(Int32) at_bias(Int32) at_bias(Int32)

获取容器中位于当前偏移处的元素。Gets the element at the current bias of the container. 偏移是相对于当前元素零的偏移量。The bias is the offset from the current element zero.

(Inherited from IRandomAccessContainer<TValue>)
back() back() back() back()

访问容器的最后一个元素。Accesses the last element of the container.

begin(ContainerRandomAccessIterator<TValue>) begin(ContainerRandomAccessIterator<TValue>) begin(ContainerRandomAccessIterator<TValue>) begin(ContainerRandomAccessIterator<TValue>)

指定受控序列的开头。Designates the beginning of the controlled sequence.

begin_bias() begin_bias() begin_bias() begin_bias()

获取当前序列开始处的偏移。Gets the bias of the beginning of the current sequence. 偏移是相对于当前元素零的偏移量。The bias is the offset of the current element zero.

clear() clear() clear() clear()

移除容器中的所有元素。Removes all elements in the container.

Clone() Clone() Clone() Clone()

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

(Inherited from ICloneable)
CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32)

从特定的 ICollection 索引开始,将 Array 的元素复制到一个 Array 中。Copies the elements of the ICollection to an Array, starting at a particular Array index.

(Inherited from ICollection)
empty() empty() empty() empty()

测试容器中是否不包含任何元素。Tests whether the container holds no elements.

end(ContainerRandomAccessIterator<TValue>) end(ContainerRandomAccessIterator<TValue>) end(ContainerRandomAccessIterator<TValue>) end(ContainerRandomAccessIterator<TValue>)

指定受控序列的末尾。Designates the end of the controlled sequence.

end_bias() end_bias() end_bias() end_bias()

获取当前序列末尾处的偏移。Gets the bias of the end of the current sequence. 偏移是相对于当前元素零的偏移量。The bias is the offset of the current element zero.

erase(ContainerRandomAccessIterator<TValue>, ContainerRandomAccessIterator<TValue>) erase(ContainerRandomAccessIterator<TValue>, ContainerRandomAccessIterator<TValue>) erase(ContainerRandomAccessIterator<TValue>, ContainerRandomAccessIterator<TValue>) erase(ContainerRandomAccessIterator<TValue>, ContainerRandomAccessIterator<TValue>)

移除指定位置处的元素。Removes the element at the specified position.

erase(ContainerRandomAccessIterator<TValue>, ContainerRandomAccessIterator<TValue>, ContainerRandomAccessIterator<TValue>) erase(ContainerRandomAccessIterator<TValue>, ContainerRandomAccessIterator<TValue>, ContainerRandomAccessIterator<TValue>) erase(ContainerRandomAccessIterator<TValue>, ContainerRandomAccessIterator<TValue>, ContainerRandomAccessIterator<TValue>) erase(ContainerRandomAccessIterator<TValue>, ContainerRandomAccessIterator<TValue>, ContainerRandomAccessIterator<TValue>)

移除指定迭代器之间的元素。Removes the elements between the specified iterators.

front() front() front() front()

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

GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

返回循环访问集合的枚举数。Returns an enumerator that iterates through a collection.

(Inherited from IEnumerable)
get_generation() get_generation() get_generation() get_generation()

获取基础容器的当前换代。Gets the current change generation of the underlying container.

insert(ContainerRandomAccessIterator<TValue>, ContainerRandomAccessIterator<TValue>, TValue) insert(ContainerRandomAccessIterator<TValue>, ContainerRandomAccessIterator<TValue>, TValue) insert(ContainerRandomAccessIterator<TValue>, ContainerRandomAccessIterator<TValue>, TValue) insert(ContainerRandomAccessIterator<TValue>, ContainerRandomAccessIterator<TValue>, TValue)

在容器中的指定位置添加一个元素。Adds an element at a specified position in the container.

insert(ContainerRandomAccessIterator<TValue>, IEnumerable) insert(ContainerRandomAccessIterator<TValue>, IEnumerable) insert(ContainerRandomAccessIterator<TValue>, IEnumerable) insert(ContainerRandomAccessIterator<TValue>, IEnumerable)

在容器中的指定位置添加元素。Adds elements at a specified position in the container.

insert(ContainerRandomAccessIterator<TValue>, IInputIterator<TValue>, IInputIterator<TValue>) insert(ContainerRandomAccessIterator<TValue>, IInputIterator<TValue>, IInputIterator<TValue>) insert(ContainerRandomAccessIterator<TValue>, IInputIterator<TValue>, IInputIterator<TValue>) insert(ContainerRandomAccessIterator<TValue>, IInputIterator<TValue>, IInputIterator<TValue>)

在容器中的指定位置添加元素。Adds elements at a specified position in the container.

insert(ContainerRandomAccessIterator<TValue>, Int32, TValue) insert(ContainerRandomAccessIterator<TValue>, Int32, TValue) insert(ContainerRandomAccessIterator<TValue>, Int32, TValue) insert(ContainerRandomAccessIterator<TValue>, Int32, TValue)

在容器中的指定位置添加一个元素。Adds an element at a specified position in the container.

pop_back() pop_back() pop_back() pop_back()

移除非空容器的最后一个元素。Removes the last element of a non-empty container.

pop_front() pop_front() pop_front() pop_front()

移除非空容器的第一个元素。Removes the first element of a non-empty container.

push_back(TValue) push_back(TValue) push_back(TValue) push_back(TValue)

将一个元素添加到容器末尾。Adds an element to the end of a container.

push_front(TValue) push_front(TValue) push_front(TValue) push_front(TValue)

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

rbegin(ReverseRandomAccessIterator<TValue>) rbegin(ReverseRandomAccessIterator<TValue>) rbegin(ReverseRandomAccessIterator<TValue>) rbegin(ReverseRandomAccessIterator<TValue>)

指定反向受控序列的开头。Designates the beginning of the reversed controlled sequence.

rend(ReverseRandomAccessIterator<TValue>) rend(ReverseRandomAccessIterator<TValue>) rend(ReverseRandomAccessIterator<TValue>) rend(ReverseRandomAccessIterator<TValue>)

指定反向受控序列的末尾。Designates the end of the reversed controlled sequence.

resize(Int32) resize(Int32) resize(Int32) resize(Int32)

更改元素的数量。Changes the number of elements.

resize(Int32, TValue) resize(Int32, TValue) resize(Int32, TValue) resize(Int32, TValue)

更改元素的数量。Changes the number of elements.

size() size() size() size()

对元素数进行计数。Counts the number of elements.

swap(IDeque<TValue>) swap(IDeque<TValue>) swap(IDeque<TValue>) swap(IDeque<TValue>)

交换两个容器的内容。Swaps the contents of two containers.

valid_bias(Int32) valid_bias(Int32) valid_bias(Int32) valid_bias(Int32)

确定给定偏移对容器是否有效。Determines if a given bias is valid for the container. 偏移是相对于当前元素零的偏移量。The bias is the offset from the current element zero.

(Inherited from IRandomAccessContainer<TValue>)

扩展方法

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

IEnumerable 的元素强制转换为指定的类型。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

根据指定类型筛选 IEnumerable 的元素。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

启用查询的并行化。Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.

适用于