From: David Abrahams (david.abrahams_at_[hidden])
Date: 2001-10-30 13:26:28
I don't think we have exactly what you're looking for, but the iterator
adaptors library could be very helpful in building it. As they say, teach a
man to fish...
David Abrahams, C++ library designer for hire
C++ Booster (http://www.boost.org)
----- Original Message -----
From: "Matt Verona" <mattverona_at_[hidden]>
To: "BOOST" <boost_at_[hidden]>
Sent: Tuesday, October 30, 2001 5:10 AM
Subject: [boost] Looking for Subvector iterator
> We're in need of a "subvector iterator" class, that locates sequences of
> records contained within a (sorted) source vector.
> For example, the source vector is sorted, such that records with matching
> ids are stored together, in contiguous groups. The subvector iterator
> then be used to locate each set of consecutive records.
> The subvector iterator's ++ operator would advance two internal pointers,
> mark the next set of matching records (beginning and one past the end
> iterators), and the iterator's dereference operator * would return the
> current subvector (i.e., a vector<Record> or possibly an STL pair of
> bounding iterators).
> Before we implement this custom iterator, I wanted to see if Boost has
> anything like it. BTW, I have seen string token iterators that have
> functionality, but this one needs to return subvectors (or a pair of
> iterators), not substrings...
> -Matt Verona
> Houston Texas
> Info: http://www.boost.org Unsubscribe:
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk