]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/cacheiterators.h
* apt-pkg/cacheiterator.h:
[apt.git] / apt-pkg / cacheiterators.h
index e2ca746838ce075977406c5d669607efc39504f7..3d58f7ec0218ac9ace3082ed2e220fa78a57b3ba 100644 (file)
                                                                        /*}}}*/
 #ifndef PKGLIB_CACHEITERATORS_H
 #define PKGLIB_CACHEITERATORS_H
+#include<iterator>
 // abstract Iterator template                                          /*{{{*/
 /* This template provides the very basic iterator methods we
    need to have for doing some walk-over-the-cache magic */
-template<typename Str, typename Itr> class pkgCache::Iterator {
+template<typename Str, typename Itr> class pkgCache::Iterator :
+                       public std::iterator<std::forward_iterator_tag, Str> {
        protected:
        Str *S;
        pkgCache *Owner;