المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : C++ and STL: Take Advantage of STL Algorithms by Implementing a Custom Iterator



C++ Programming
03-29-2009, 02:42 AM
There are many benefits to using the Standard Template Library (STL) for C++ development, including the ability to use generic data structures and algorithms. To use the STL algorithms, an STL-conforming container is required. Iterating through the Internet Explorer cache is an informative exercise, but the cache is not an STL-conforming container. So, to use the STL algorithms to search and enumerate the Internet Explorer cache, an adapter is needed. Building such an adapter-an STL-conforming iterator-is the topic of this article. Also provided is an overview of the components of the STL and the Win32 Internet APIs used.

Samir Bajaj

<a href="http://msdn.microsoft.com/magazine/7f9e31dd-e25a-4163-b211-ca1133ed6695">MSDN Magazine April 2001