System::Collections::ObjectModel::KeyedCollection class
KeyedCollection class
Abstract collection of elements with embedded keys. 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.
template<typename TKey,typename TItem>class KeyedCollection : public System::Collections::ObjectModel::Collection<TItem>
Parameter | Description |
---|
TKey | Key type. |
TItem | value type. |
Methods
Method | Description |
---|
Add(const TItem&) override | Add item to container end. |
Contains(TKey) | Checks if key is present in container. |
get_Comparer() | Gets comparer. |
idx_get(TKey) | Gets item at specific index. |
Remove(TKey) | Removes key from container. |
SetTemplateWeakPtr(uint32_t) override | Makes specific template argument to be treated as weak pointer instead of shared pointer (if applicable). |
Fields
Field | Description |
---|
static defaultThreshold | Lookup dictionary creation threshold, default. |
See Also