Opened 10 years ago

Last modified 9 years ago

#7742 assigned Feature Requests

tie like functionality for ranges

Reported by: philipp.moeller@… Owned by: Neil Groves
Milestone: To Be Determined Component: range
Version: Boost 1.52.0 Severity: Cosmetic
Keywords: usability Cc:

Description

The Graph library uses std::pair to pass ranges and this allows a nice pattern to use old-fashioned for-loops:

Graph g; boost::graph_traits<Graph>::vertex_iterator b, e; for(boost::tie(b, e) = vertices(g); b != e; ++b) {

}

This works without any modifications with pair.

The functionality would be great for all ranges as it provides users that don't want to use Boost.Range algorithms with a simple way to use their preferred style or algorithms from std.

Change History (1)

comment:1 by Neil Groves, 9 years ago

Status: newassigned
Type: BugsFeature Requests
Note: See TracTickets for help on using tickets.