語言

IDeque<TValue> 介面

定義

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

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

那種被控制住的類型。

實作

備註

有些方法,特別是運算子,會宣告參數的型別,但不指定參數名稱。 這樣的參數稱為 無名參數。 在這些方法的文件中, A_0 佔位符代表未命名的參數。

欲了解更多資訊,請參閱 deque(STL/CLR)。

屬性

名稱 Description
back_item

存取非空 deque 集合的最後一個元素。

Count

得到包含於 的 ICollection元素數量。

(繼承來源 ICollection)
front_item

存取非空 deque 集合的第一個元素。

IsSynchronized

取得值,指出是否同步存取 ICollection (線程安全)。

(繼承來源 ICollection)
Item[Int32]

將元素置於容器中指定的位置。

SyncRoot

取得一個物件,可用來同步存取 ICollection。

(繼承來源 ICollection)

方法

名稱 Description
assign(IEnumerable)

將容器中的所有元素替換為給定 IEnumerable 物件中的元素。

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

將容器中的所有元素替換為由給定 IInputIterator<TValue> 物件指定的元素。

assign(Int32, TValue)

將容器中所有元素替換為指定數量的元素。

at_bias(Int32)

取得元件時,元件位於容器目前的偏壓值。 偏壓是與當前元素零的偏移量。

(繼承來源 IRandomAccessContainer<TValue>)
at(Int32)

存取容器中指定位置的元素。

back()

存取容器的最後一個元素。

begin_bias()

取得當前序列起始的偏向。 偏置是當前元素零的偏移量。

begin(ContainerRandomAccessIterator<TValue>)

指定受控制序列的開頭。

clear()

移除容器中的所有元素。

Clone()

建立一個新的物件,該物件是目前實例的複製品。

(繼承來源 ICloneable)
CopyTo(Array, Int32)

從特定ICollection索引開始,將 的Array元素複製到 Array。

(繼承來源 ICollection)
empty()

測試容器中是否含有任何元素。

end_bias()

得到當前序列末端的偏壓。 偏置是當前元素零的偏移量。

end(ContainerRandomAccessIterator<TValue>)

指定受控制序列的結尾。

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

移除指定迭代器之間的元素。

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

移除指定位置的元素。

front()

存取容器的第一個元素。

get_generation()

取得底層容器目前的變更產生。

GetEnumerator()

傳回逐一查看集合的列舉值。

(繼承來源 IEnumerable)
insert(ContainerRandomAccessIterator<TValue>, ContainerRandomAccessIterator<TValue>, TValue)

在容器中指定位置加入元素。

insert(ContainerRandomAccessIterator<TValue>, IEnumerable)

在容器中指定位置加入元素。

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

在容器中指定位置加入元素。

insert(ContainerRandomAccessIterator<TValue>, Int32, TValue)

在容器中指定位置加入元素。

pop_back()

移除非空容器的最後一個元素。

pop_front()

移除非空容器的第一個元素。

push_back(TValue)

在容器末端加入一個元素。

push_front(TValue)

在容器開頭加入一個元素。

rbegin(ReverseRandomAccessIterator<TValue>)

指定反向受控制序列的開頭。

rend(ReverseRandomAccessIterator<TValue>)

指定反向受控制序列的結尾。

resize(Int32, TValue)

變更項目數目。

resize(Int32)

變更項目數目。

size()

計算元素的數目。

swap(IDeque<TValue>)

交換兩個容器的內容。

valid_bias(Int32)

判斷某一偏置是否適用於容器。 偏壓是與當前元素零的偏移量。

(繼承來源 IRandomAccessContainer<TValue>)

擴充方法

名稱 Description
AsParallel(IEnumerable)

啟用查詢的平行處理。

AsQueryable(IEnumerable)

將 IEnumerable 轉換成 IQueryable。

Cast<TResult>(IEnumerable)

將 IEnumerable 的項目轉換成指定的型別。

OfType<TResult>(IEnumerable)

根據指定的型別篩選 IEnumerable 的專案。

適用於