Platform::Collections 네임스페이스

Platform::Collections 네임스페이스에는 Map, MapViewVectorVectorView 클래스가 포함됩니다. 이러한 클래스는 Windows::Foundation::Collections 네임스페이스에 정의된 해당 인터페이스의 구체적 구현입니다. 구체적인 컬렉션 형식은 ABI를 통해 이식할 수 없습니다. Javascript 또는 C# 프로그램이 C++ 구성 요소를 호출하는 경우를 예로 들 수 있습니다. 그러나 구체적인 컬렉션 형식을 해당 인터페이스 형식으로 암시적으로 변환할 수는 있습니다. 예를 들어 컬렉션을 채우고 반환하는 공용 메서드를 구현한 경우 Platform::Collections::Vector 를 사용하여 내부적으로 컬렉션을 구현하고 Windows::Foundation::Collections::IVector 를 반환 형식으로 사용합니다. 자세한 내용은 C++에서 컬렉션Windows 런타임 구성 요소 만들기를 참조하세요.

Platform::Collections::Vector는 std::vector 에서 Platform::Collections::Mapstd::map에서 작성할 수 있습니다.

또한 Platform::Collections 네임스페이스는 백 삽입 및 입력 반복기 및 VectorVectorView 반복기를 지원합니다.

Platform::Collections 네임스페이스의 형식을 사용하려면 collection.h 헤더를 포함#include해야 합니다.

구문

#include <collection.h>
using namespace Platform::Collections;

멤버

이 네임스페이스에는 다음 멤버가 포함되어 있습니다.

이름 설명
Platform::Collections::BackInsertIterator 클래스 컬렉션 끝 부분에 요소를 삽입하는 반복기를 나타냅니다.
Platform::Collections::InputIterator 클래스 컬렉션 시작 부분에 요소를 삽입하는 반복기를 나타냅니다.
Platform::Collections::Map 클래스 키에서 액세스할 수 있는 키/값 쌍의 수정 가능한 컬렉션을 나타냅니다. std::map과 비슷합니다.
Platform::Collections::MapView 클래스 키에서 액세스할 수 있는 키/값 쌍의 읽기 전용 컬렉션을 나타냅니다.
Platform::Collections::Vector 클래스 요소의 수정 가능한 시퀀스를 나타냅니다. std::vector과 비슷합니다.
Platform::Collections::VectorIterator 클래스 Vector 컬렉션을 트래버스하는 반복기를 나타냅니다.
Platform::Collections::VectorView 클래스 요소의 읽기 전용 시퀀스를 나타냅니다.
Platform::Collections::VectorViewIterator 클래스 VectorView 컬렉션을 트래버스하는 반복기를 나타냅니다.

상속 계층

Platform 네임스페이스

요구 사항

메타데이터: platform.winmd

네임스페이스: Platform::Collections

컴파일러 옵션: /ZW

참고 항목

플랫폼 네임스페이스