## HashSet::HashSet() constructor


RTTI information.

```cpp
System::Collections::Generic::HashSet<T>::HashSet()
```

## Remarks


Creates empty set. 
## See Also

* Class [HashSet](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.PUB for C++](../../../)
## HashSet::HashSet(int) constructor


Creates empty set with specified capacity.

```cpp
System::Collections::Generic::HashSet<T>::HashSet(int capacity)
```

## See Also

* Class [HashSet](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.PUB for C++](../../../)
## HashSet::HashSet(const SharedPtr\<IEqualityComparer\<T\>\>\&) constructor


Creates empty set that uses the specified equality comparer.

```cpp
System::Collections::Generic::HashSet<T>::HashSet(const SharedPtr<IEqualityComparer<T>> &comparer)
```


| Parameter | Type | Description |
| --- | --- | --- |
| comparer | const SharedPtr\<IEqualityComparer\<T\>\>\& | Comparer object to associate with hashset. |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [IEqualityComparer](../../iequalitycomparer/)
* Class [HashSet](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.PUB for C++](../../../)
## HashSet::HashSet(const SharedPtr\<IEnumerable\<T\>\>\&) constructor


Creates hashset based on enumerable values.

```cpp
System::Collections::Generic::HashSet<T>::HashSet(const SharedPtr<IEnumerable<T>> &items)
```

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [IEnumerable](../../ienumerable/)
* Class [HashSet](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.PUB for C++](../../../)
