語言

IVector<TValue> 介面

定義

定義 STL/CLR 向量 物件的介面。

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

類型參數

TValue

受控制序列中項目的類型。

實作

備註

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

屬性

名稱 Description
back_item

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

Count

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

(繼承來源 ICollection)
front_item

存取容器的第一個元素。

IsSynchronized

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

(繼承來源 ICollection)
Item[Int32]

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

SyncRoot

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

(繼承來源 ICollection)

方法

名稱 Description
assign(IEnumerable)

將容器中的所有元素替換為指定列舉中的元素。

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

將容器中的所有元素替換為給定迭代器之間的元素。

assign(Int32, TValue)

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

at_bias(Int32)

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

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

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

back()

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

begin(ContainerRandomAccessIterator<TValue>)

指定受控制序列的開頭。

capacity()

報告容器的已配置記憶體大小。

clear()

移除容器中的所有元素。

Clone()

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

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

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

(繼承來源 ICollection)
empty()

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

end(ContainerRandomAccessIterator<TValue>)

指定受控制序列的結尾。

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

移除範圍 [_First_iter, _Last_iter] 中受控序列的元素。

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

移除 _Where所指向的受控序列中唯一的元素。

front()

存取容器的第一個元素。

get_generation()

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

GetEnumerator()

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

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

將指定的值插入容器中。

insert(ContainerRandomAccessIterator<TValue>, IEnumerable)

將列舉器指定的序列插入容器中。

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

將以前一個元素為開頭 _First 、以前 _Last 一個元素結束的序列插入容器中。

insert(ContainerRandomAccessIterator<TValue>, Int32, TValue)

將指定的值插入容器中。

pop_back()

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

push_back(TValue)

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

rbegin(ReverseRandomAccessIterator<TValue>)

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

rend(ReverseRandomAccessIterator<TValue>)

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

reserve(Int32)

預留儲存空間以確保貨櫃的最小生長能力。

resize(Int32, TValue)

將容器中的元素數量調整為指定的大小。 若新大小大於舊大小,該方法會附加值為 _Val的元素。

resize(Int32)

將容器中的元素數量調整為指定的大小。

size()

計算容器中元素的數量。

swap(IVector<TValue>)

交換兩個容器的內容。

valid_bias(Int32)

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

(繼承來源 IRandomAccessContainer<TValue>)

擴充方法

名稱 Description
AsParallel(IEnumerable)

啟用查詢的平行處理。

AsQueryable(IEnumerable)

將 IEnumerable 轉換成 IQueryable。

Cast<TResult>(IEnumerable)

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

OfType<TResult>(IEnumerable)

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

適用於