Exemplo n.º 1
0
      typename Iter::difference_type
      distance(const Iter& x, const Iter& y) const { 
	return y.base().first - x.base().first; 
      }
Exemplo n.º 2
0
 void advance(Iter& p, D n) { p.base().first += n; p.base().second += n; }
Exemplo n.º 3
0
      bool less(const Iter& x, const Iter& y) const { 
	return x.base().first < y.base().first;  
      }
Exemplo n.º 4
0
 void decrement(Iter& i) { --i.base().first; --i.base().second; }
Exemplo n.º 5
0
 void increment(Iter& i) { ++i.base().first; ++i.base().second; }
Exemplo n.º 6
0
      bool equal(const Iter& p1, const Iter& p2) const { 
	return p1.base().first == p2.base().first;  
      }
Exemplo n.º 7
0
void swap_elements( Iter first, Iter second, boost::ptr_vector<T,C,A>& vec)
{
    std::swap( *first.base(), *second.base());
}