---
title: "Aspose::Pub::Utils::Set class"
url: "https://reference.aspose.com/pub/cpp/aspose.pub.utils/set/"
product: "Aspose.PUB for C++"
description: "Aspose::Pub::Utils::Set class. Designed to represent sets of type specified in C++."
---

## Set class


Designed to represent sets of type specified.

```cpp
template<typename T>class Set : public System::Collections::Generic::List<T>
```


| Parameter | Description |
| --- | --- |
| T | type of set |
## Methods

| Method | Description |
| --- | --- |
| [Add](./add/)(const T\&) override | Adds element to the end of list. |
| [Set](./set/)() |  |
| [Set](./set/)(System::ArrayPtr\<T\>) |  |
| [SetTemplateWeakPtr](./settemplateweakptr/)(uint32_t) override | [Set](./) n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. |

## See Also

* Class [List](../../system.collections.generic/list/)
* Namespace [Aspose::Pub::Utils](../)
* Library [Aspose.PUB for C++](../../)
