System::Collections::Generic::HashSet class
Contents
[
Hide
]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
Method | Description |
---|---|
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
Typedef | Description |
---|---|
ThisType | Self type. |
BaseType | Base type. |
ThisPtr | Pointer 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
- Class BaseSet
- Namespace System::Collections::Generic
- Library Aspose.PUB for C++