19 #ifndef CIRCULAR_ITERATOR_HH
20 #define CIRCULAR_ITERATOR_HH
25 class const_circular_iter :
public std::iterator<std::bidirectional_iterator_tag,typename T::value_type>
27 typedef typename T::const_iterator iterator;
28 typedef typename T::value_type value_type;
76 for(
unsigned int i=0;i<n;++i)
83 for(
unsigned int i=0;i<n;++i)
100 class circular_iter :
public std::iterator<std::bidirectional_iterator_tag,typename T::value_type>
102 typedef typename T::iterator iterator;
103 typedef typename T::value_type value_type;
111 circular_iter(iterator b, iterator e, iterator pos) : iter(pos), begin(b), end(e) {};
148 for(
unsigned int i=0;i<n;++i)
155 for(
unsigned int i=0;i<n;++i)
167 {
return (iter == rhs.iter);}