Boost logo

Boost :

From: Jonathan Turkanis (technews_at_[hidden])
Date: 2004-09-09 16:59:18


"Pavol Droba" <droba_at_[hidden]> wrote in message:
> Hi,
>
> On Thu, Sep 09, 2004 at 02:57:39PM -0600, Jonathan Turkanis wrote:
> >
> > "Thorsten Ottosen" <nesotto_at_[hidden]> wrote in message

> > > 1. comparing the iterators is seldom useful and can be done explicitlty or
by
> > > a new member function equal()
> > > 2. comparing the objects is the range is highly useful and allows for code
> > > like
> > >
> > > sub_range<string> sub = ...;
> > > if( sub == "foo" )
> >
> > Wouldn't it be natural to define a collection-oriented version of std::equal
> > from <algorithm> to perform this test?
>
> Such an algorithm is already in string_algo lib (maybe it will be move
elsewhere
> when better place will be found).
>
> However, the point is somewhere else. There are operators for vector, list and
etc.
> It is natural to have it also for the iterator_range.

Okay. I agree.

Jonathan


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk