ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> boost
boost
[boost] Library proposal --- pair (and tuple) iterators
by Anthony Williams other posts by this author
Sep 19 2003 12:10PM messages near this date
[boost] Re: Serialization Draft # 12 | [boost] Re: Library proposal --- pair (and tuple) iterators
Hi,

I would like to submit my "pair iterators" library for inclusion in boost. The
library is described in my article "Pairing off Iterators" from Overload 51,
which is available at http://cplusplus.anthonyw.cjb.net/pair_iterators.pdf

The source code for the library is available at
http://cplusplus.anthonyw.cjb.net/pair_iterators.zip

I have also written a modified version of the code which supports tuples,
which I have uploaded to the boost files area on yahoo groups as "tupleit.zip"

The basic premise is an iterator adapter that converts a pair (or tuple) of
iterators into an iterator that returns a pair (or tuple), so that, for
example, one can sort several containers simultaneously, based on a key held
in only one of them. A key feature is that where the underlying iterators
return a lvalues, the pair (or tuple) iterator will also return an lvalue that
can be used to modify the original values.

The pair iterators support the lowest iterator category of the underlying
iterators, so if all the underlying iterators are random access, then the pair
iterator will be random access (thus allowing use with algorithms such as
sort), whereas if one of the underlying iterators is only an input or output
iterator, then the pair iterator will also be only an input or output
iterator.

Anthony
-- 
Anthony Williams
Senior Software Engineer, Beran Instruments Ltd.
Remove NOSPAM when replying, for timely response.

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Thread:
Anthony Williams
Anthony Williams
Stefano Delli Ponti
Anthony Williams
Stefano Delli Ponti
Beman Dawes
Anthony Williams
Beman Dawes
David Abrahams
Thomas Becker
Anthony Williams
David Abrahams
David Abrahams

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved