C++/CX 會以使用 Vector、VectorView、Map 和 MapView 集合類別簡化的函式補充 Windows::Foundation::Collections 命名空間。
語法
namespace Windows {
namespace Foundation {
namespace Collections;
}
}
Functions
| 名稱 | 描述 |
|---|---|
| back_inserter 函式 | 傳回可用來在集合結尾插入值的迭代器。 |
| begin 函式 | 傳回指向集合開頭的迭代器。 |
| end 函式 | 傳回指向集合結尾之外的迭代器。 |
| to_vector 函式 | 傳回作為 std::vector 的集合。 |
需求
標頭: collection.h
命名空間: Windows::Foundation::Collections