System::Collections::Generic::HashSet class

HashSet class

Forward declaration of HashSet class.

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>>

Methods

MethodDescription
HashSet()RTTI information.
HashSet(int)Creates empty set with specified capacity.
HashSet(const SharedPtr<IEqualityComparer<T>>&)Creates empty set that uses the specified equality comparer.
HashSet(const SharedPtr<IEnumerable<T>>&)Creates hashset based on enumerable values.

Typedefs

TypedefDescription
ThisTypeSelf type.
BaseTypeBase type.
ThisPtrPointer type.

Remarks

Set implementation based on hashing. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.

See Also