Inherits iterator< std::forward_iterator_tag, Value, std::ptrdiff_t, Value *, MakeConstRef_t< Value > >.
template<typename T>
template<typename Value, typename Enumerator>
class System::Collections::Generic::IEnumerable< T >::EnumeratorBasedIterator< Value, Enumerator >
Represents a base iterator implementation. For internal use only.
#include <system/collections/list.h>
#include <system/smart_ptr.h>
#include <algorithm>
#include <iterator>
int main()
{
auto collection = MakeObject<List<int>>();
collection->Add(1);
collection->Add(2);
collection->Add(3);
std::ostream_iterator<int> osi(std::cout, " ");
std::copy(collection->begin(), collection->end(), osi);
return 0;
}
- Template Parameters
-
Value | The type of the iterated items. |
Enumerator | The type of the enumerator. |