Windows::Foundation::Collections 命名空间 (C++/CX)
C++/CX 通过使用 Vector、VectorView、Map 和 MapView 集合类进行简化的函数补充 Windows::Foundation::Collections 命名空间。
语法
namespace Windows {
namespace Foundation {
namespace Collections;
}
}
函数
名称 | 描述 |
---|---|
back_inserter 函数 | 返回一个迭代器,它可以用于在集合结尾处插入值。 |
begin 函数 | 返回一个迭代器,它指向集合开头。 |
end 函数 | 返回一个迭代器,它指向越过集合结尾的位置。 |
to_vector 函数 | 以 std:: vector 形式返回一个集合。 |
要求
标头: collection.h
命名空间: Windows::Foundation::Collections
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈