Dictionary()
Contents
[
Hide
]Dictionary::Dictionary() constructor
Creates empty dictionary.
System::Collections::Generic::Dictionary<TKey, TValue>::Dictionary()
Dictionary::Dictionary(const map_t&) constructor
Copies data from map.
System::Collections::Generic::Dictionary<TKey, TValue>::Dictionary(const map_t &map)
Arguments
Parameter | Type | Description |
---|---|---|
map | const map_t& | Map to copy data from. |
Dictionary::Dictionary(int) constructor
Overload which corresponds to creating pre-allocated dictionary; does no allocation, actually.
System::Collections::Generic::Dictionary<TKey, TValue>::Dictionary(int capacity)
Arguments
Parameter | Type | Description |
---|---|---|
capacity | int | Capacity to allocate; ignored. |
Dictionary::Dictionary(const SharedPtr<IDictionary<TKey, TValue>>&) constructor
Copy constructor.
System::Collections::Generic::Dictionary<TKey, TValue>::Dictionary(const SharedPtr<IDictionary<TKey, TValue>> &src)
Arguments
Parameter | Type | Description |
---|---|---|
src | const SharedPtr<IDictionary<TKey, TValue>>& | Dictionary to copy data from. |
Dictionary::Dictionary(const SharedPtr<IDictionary<TKey, TValue>>&, const SharedPtr<IEqualityComparer<TKey>>&) constructor
Copy constructor.
System::Collections::Generic::Dictionary<TKey, TValue>::Dictionary(const SharedPtr<IDictionary<TKey, TValue>> &src, const SharedPtr<IEqualityComparer<TKey>> &comparer)
Arguments
Parameter | Type | Description |
---|---|---|
src | const SharedPtr<IDictionary<TKey, TValue>>& | Source dictionary. |
comparer | const SharedPtr<IEqualityComparer<TKey>>& | Comparer object to use. |
Dictionary::Dictionary(const SharedPtr<IEqualityComparer<TKey>>&) constructor
Creates empty dictionary.
System::Collections::Generic::Dictionary<TKey, TValue>::Dictionary(const SharedPtr<IEqualityComparer<TKey>> &comparer)
Arguments
Parameter | Type | Description |
---|---|---|
comparer | const SharedPtr<IEqualityComparer<TKey>>& | Comparer to use. |
Dictionary::Dictionary(int, const SharedPtr<IEqualityComparer<TKey>>&) constructor
Creates empty dictionary.
System::Collections::Generic::Dictionary<TKey, TValue>::Dictionary(int capacity, const SharedPtr<IEqualityComparer<TKey>> &comparer)
Arguments
Parameter | Type | Description |
---|---|---|
capacity | int | Dictionary capacity after creation; ignored. |
comparer | const SharedPtr<IEqualityComparer<TKey>>& | Comparer to use. |
See Also
- Typedef map_t
- Typedef SharedPtr
- Class Dictionary
- Class IDictionary
- Class IEqualityComparer
- Namespace System::Collections::Generic
- Library Aspose.Slides