Understanding and Implementing the Iterator Pattern in C# and C++

Having a collection of objects is a very common thing in software development. If we have a collection of objects then we might also find ourselves in need to traverse this collection. Most languages provide traversal techniques over basic collection types. C++ and C# also contain some special container types capable of holding a collection of values (example: vectors in C++, Lists, and ArrayLists in C#). These specialized containers also come with the possibility of getting iterated. C# container classes and C++ STL container classes are the best examples of how the iterator pattern is implem
Posted by: Michael
On 17 Apr 2012 | Views: 1285 | Categories: C++, C#

Post your comments


Other lins

.Net Techies
Other lins