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
Vector<T>
或 VectorView<T>
对象的集合,通过 IVector<T>
或 IVectorView<T>
接口访问。
i
任意 Windows 运行时对象的集合,通过 IIterable<T>
接口访问。
返回值
指向集合结尾之外的迭代器。
注解
前两个函数模板返回迭代器,第三个函数模板返回输入迭代器。
end
返回的 Platform::Collections::VectorViewIterator
对象是一个代理迭代器,用于存储 VectorProxy<T>
类型的元素。 不过,代理对象对于用户代码应该不可见。 有关更多信息,请参见 集合 (C++/CX)。
要求
标头: collection.h
命名空间:Windows::Foundation::Collections
另请参阅
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈