System::Collections::Generic::HashSet 클래스

HashSet class

전방 선언된 HashSet 클래스.

template<typename T>class HashSet : public System::Collections::Generic::BaseSet<T, std::unordered_set<T, EqualityComparerHashAdapter<T>, EqualityComparerAdapter<T>, System::Details::CollectionHelpers::ContainerPointerMode<T>::allocator_type>>

메서드

메서드설명
HashSet()RTTI 정보.
HashSet(int)지정된 용량으로 빈 집합을 생성합니다.
HashSet(const SharedPtr<IEqualityComparer<T>>&)지정된 동일성 비교자를 사용하는 빈 집합을 생성합니다.
HashSet(const SharedPtr<IEnumerable<T>>&)열거 가능한 값들을 기반으로 HashSet을 생성합니다.

Typedefs

타입 정의설명
BaseType기본 유형.
ThisPtr포인터 유형.
ThisType자기 타입.

비고

해싱을 기반으로 하는 집합 구현입니다. 이 클래스의 객체는 System::MakeObject() 함수를 사용하여 할당해야 합니다. 스택에 직접 생성하거나 operator new를 사용하여 인스턴스를 만들면 런타임 오류 또는 어설션 오류가 발생합니다. 항상 이 클래스를 System::SmartPtr 포인터로 감싸고, 해당 포인터를 인수로 함수에 전달하십시오.

또 보기