From: jsiek_at_[hidden]
Date: 2000-01-08 02:10:51


Instead of using equality_comparable in ptr_container_helper
it is more efficient to do the following:

  template <class C, class T>
  bool operator!=(const ptr_container_helper<C,T>& x,
                  const ptr_container_helper<C,T>& y)
  {
    typedef typename ptr_container_helper<C,T>::const_iterator Iter;
    std::pair<Iter,Iter> p = std::mismatch(x.begin(), x.end(), y.begin());
    return p.first != x.end();
  }