共用方式為


end 函式

傳回迭代器,指向指定的介面參數所存取之集合的結尾之外。

語法

template <typename T>
    ::Platform::Collections::VectorIterator<T>
    end(IVector<T>^ v);

template <typename T>
    ::Platform::Collections::VectorViewIterator<T>
    end(IVectorView<T>^ v);
template <typename T>
    ::Platform::Collections::InputIterator<T>
    end(IIterable<T>^ i);

參數

T
樣板類型參數。

v
或 介面所 IVector<T> 存取之 Vector<T>VectorView<T>IVectorView<T> 物件的集合。

i
介面所 IIterable<T> 存取之任意Windows 執行階段物件的集合。

傳回值

指向集合結尾之外的迭代器。

備註

前兩個函式範本會傳回反覆運算器,而第三個函式範本會傳回輸入反覆運算器。

Platform::Collections::VectorViewIteratorend 傳回的物件是 Proxy 反覆運算器,可儲存 型 VectorProxy<T> 別 的專案。 不過,對使用者程式碼來說,Proxy 物件永遠都像是不存在一樣。 如需詳細資訊,請參閱 集合 (C++/CX)

需求

標頭: collection.h

命名空間:Windows::Foundation::Collections

另請參閱

Windows::Foundation::Collections 命名 空間