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

包含的型別。

實作

備註

某些方法 (特別是運算子) 會宣告參數的類型,但不會指定參數名稱。 這種參數稱為「未命名參數」(Unnamed Parameter)。 在這些方法的檔中, A_0 預留位置代表未命名的參數。

如需詳細資訊,請參閱 deque (STL/CLR)

屬性

back_item

存取非空白 deque 集合的最後一個專案。

Count

取得 ICollection 中所包含的項目數。

(繼承來源 ICollection)
front_item

存取非空白 deque 集合的第一個專案。

IsSynchronized

取得值,這個值表示對 ICollection 的存取是否同步 (安全執行緒)。

(繼承來源 ICollection)
Item[Int32]

取得或設定容器中位於指示位置的項目。

SyncRoot

取得可用以同步存取 ICollection 的物件。

(繼承來源 ICollection)

方法

assign(IEnumerable)

以指定之 IEnumerable 物件中的項目取代容器的所有項目。

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

以指定之 IInputIterator<TValue> 物件所指定的項目取代容器的所有項目。

assign(Int32, TValue)

以指定數目的指定項目取代容器的所有項目。

at(Int32)

存取容器中位於指定位置的項目。

at_bias(Int32)

取得位於容器目前偏差的項目。 偏差是從目前的項目零開始的位移。

(繼承來源 IRandomAccessContainer<TValue>)
back()

存取容器的最後一個項目。

begin(ContainerRandomAccessIterator<TValue>)

指定受控制序列的開頭。

begin_bias()

取得目前序列開頭的偏差。 偏差是目前項目零的位移。

clear()

移除容器中的所有項目。

Clone()

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

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

從特定的 ICollection 索引開始,將 Array 的項目複製到 Array

(繼承來源 ICollection)
empty()

測試容器是否沒有項目。

end(ContainerRandomAccessIterator<TValue>)

指定受控制序列的結尾。

end_bias()

取得目前序列結尾的偏差。 偏差是目前項目零的位移。

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

移除特定位置的項目。

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

移除指定之 Iterator 之間的項目。

front()

存取容器的第一個項目。

get_generation()

取得基礎容器的目前變化層代 (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)

變更項目的數目。

resize(Int32, TValue)

變更項目的數目。

size()

計算元素的數目。

swap(IDeque<TValue>)

交換兩個容器的內容。

valid_bias(Int32)

判斷指定的偏差對容器是否有效。 偏差是從目前的項目零開始的位移。

(繼承來源 IRandomAccessContainer<TValue>)

擴充方法

Cast<TResult>(IEnumerable)

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

OfType<TResult>(IEnumerable)

根據指定的型別來篩選 IEnumerable 的項目。

AsParallel(IEnumerable)

啟用查詢的平行化作業。

AsQueryable(IEnumerable)

IEnumerable 轉換成 IQueryable

適用於