System::Collections::Generic::SimpleEnumerator class

SimpleEnumerator class

Iterator class for simple containers holding elements directly using rbegin() and rend() functions. 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 Container,typename Element>class SimpleEnumerator : public System::Collections::Generic::BaseEnumerator<Container, typename Container::value_type>
ParameterDescription
ContainerContainer type to iterate through.
ElementElement type.

Methods

MethodDescription
CloneIterator() const overrideClones current iterator.
get_Current() const overrideGets ‘current’ element.
SimpleEnumerator(Object::ptr, Container&)Creates simple iterator.

See Also