System::Collections::Generic::SortedList class

SortedList class

Sorted list wrapping FlatMap structure. 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 TValue>class SortedList : public System::Collections::Generic::SortedListHelper<TKey, TValue>,
                                                          public System::Collections::Generic::BaseDictionary<Detail::FlatMap<TKey, TValue, ComparerAdapter<TKey>>>
ParameterDescription
TKeyKey type.
TValueValue type.

Nested classes

Methods

MethodDescription
crbegin() constGets a reverse iterator to the last const-qualified element of collection (first in reverse).
crend() constGets a reverse iterator for a non-existent const-qualified element before the start of the collection.
get_Capacity() constGets current list capacity.
get_Keys() const
get_Values() const
GetEnumerator() overrideGets enumerator iterating through current list.
IndexOfKey(TKey) constLooks for specific key.
IndexOfValue(TValue) constLooks for specific value.
rbegin()Gets a reverse iterator to the last element of collection (first in reverse).
rbegin() constGets a reverse iterator to the last element of the const-qualified collection (first in reverse).
RemoveAt(int)Removes item at specified position.
rend()Gets a reverse iterator for a non-existent element before the start of the collection.
rend() constGets a reverse iterator for a non-existent element before the start of the const-qualified collection.
set_Capacity(int)Sets current list capacity.
SortedList()Constructs empty list.
SortedList(const SharedPtr<IComparer<TKey>>&)Constructs empty list.
SortedList(const SharedPtr<IDictionary<TKey, TValue>>&)Copy constructor.
SortedList(const map_t&)Copy constructor.
SortedList(int)Constructs empty list.

Typedefs

TypedefDescription
const_iteratorConst iterator type.
const_reverse_iteratorConst reverse iterator type.
IEnumerablePtrCollection of same pairs type.
IEnumeratorPtrEnumerator type.
iteratorIterator type.
KeyCollectionKey collection type.
KVPairKey value pair type.
map_tUnderlying data type.
PtrPointer type.
reverse_iteratorReverse iterator type.
this_tThis type.
ValueCollectionValue collection type.

See Also