#1297 closed Patches (duplicate)
std advance and std distance for Boost.Iterator traversal categories
Reported by: | Owned by: | Dave Abrahams | |
---|---|---|---|
Milestone: | To Be Determined | Component: | iterator |
Version: | Boost Development Trunk | Severity: | Problem |
Keywords: | Cc: |
Description
The new traversal categories of Boost.Iterator should be used in std advance and std distance, but this is obviously not possible without the cooperation of compiler writers.
The attached patch (against the trunk, rev. 39675) implements boost advance and boost distance that use the new iterator categories. It implements them within the utility library, since that library already contains the closely related next() and prior() function templates. Documentation and test cases are included.
The patch also modifies next() and prior() to use boost advance(), although this change is a considerably higher risk than the addition of the new feature.
Change History (4)
comment:1 by , 15 years ago
comment:2 by , 15 years ago
Component: | None → iterator |
---|---|
Owner: | set to |
comment:3 by , 14 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
duplicates #1296; please see comment on that ticket
comment:4 by , 13 years ago
Learn to pause -- or nothing worthwhile can catch up to you. vendita italia fioricet online pharmacy buy brand cialis cLZXtPn tramadol buy cheap
I can't attach the patch - TRAC complains about too many links in the submission and treats it as spam. (So yeah, it contains a patch to the HTML docs of utility. Duh!)