System::Collections::Generic::HashSet class
Contenuti
[
Nascondere
]HashSet class
Dichiarazione in avanti della classe 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>>
Metodi
| Metodo | Descrizione |
|---|---|
| HashSet() | Informazioni RTTI. |
| HashSet(int) | Crea un set vuoto con capacità specificata. |
| HashSet(const SharedPtr<IEqualityComparer<T>>&) | Crea un set vuoto che utilizza il comparatore di uguaglianza specificato. |
| HashSet(const SharedPtr<IEnumerable<T>>&) | Crea un hashset basato su valori enumerabili. |
Typedefs
| Typedef | Descrizione |
|---|---|
| BaseType | Tipo base. |
| ThisPtr | Tipo puntatore. |
| ThisType | Tipo self. |
Osservazioni
Implementazione di set basata su hashing. Gli oggetti di questa classe dovrebbero essere allocati solo usando la funzione System::MakeObject(). Non creare mai un’istanza di questo tipo sullo stack o usando l’operatore new, poiché ciò provocherà errori di runtime e/o fallimenti di asserzione. Avvolgi sempre questa classe in un puntatore System::SmartPtr e usa questo puntatore per passarlo alle funzioni come argomento.
Vedi anche
- Class BaseSet
- Namespace System::Collections::Generic
- Library Aspose.Font for C++