EnumeratorWrapperIterator

EnumeratorWrapperIterator class

Iterator that wraps the pre-created enumerator and redirects all calls into it.

template<typename Element>class EnumeratorWrapperIterator : public System::Details::VirtualizedIteratorBase<Element>

Template parameters

ParameterDescription
ElementElement type.

Methods

MethodDescription
System::Details::VirtualizedIteratorBase<Element> * CloneIterator() const overrideClones current iterator.
EnumeratorWrapperIterator(const SharedPtr<IEnumerator<Element>>&)
void IncrementIterator() overrideMoves the iterator step forward. Must update m_is_end and m_pointer.
bool IteratorEquals(System::Details::VirtualizedIteratorBase<Element> *) const overrideChecks if two iterators point to the same item.
virtual ~EnumeratorWrapperIterator()Destructor.

See Also