[Boost-bugs] [Boost C++ Libraries] #7742: tie like functionality for ranges

Subject: [Boost-bugs] [Boost C++ Libraries] #7742: tie like functionality for ranges
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-11-27 11:56:41


#7742: tie like functionality for ranges
-------------------------------------------------+--------------------------
 Reporter: philipp.moeller@… | Owner: neilgroves
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: range
  Version: Boost 1.52.0 | Severity: Cosmetic
 Keywords: usability |
-------------------------------------------------+--------------------------
 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.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7742>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:11 UTC