Boost C++ Libraries: Ticket #7742: tie like functionality for ranges https://svn.boost.org/trac10/ticket/7742 <p> The Graph library uses std::pair to pass ranges and this allows a nice pattern to use old-fashioned for-loops: </p> <blockquote> <p> Graph g; boost::graph_traits&lt;Graph&gt;::vertex_iterator b, e; for(boost::tie(b, e) = vertices(g); b != e; ++b) { </p> </blockquote> <p> </p> <blockquote> <p> } </p> </blockquote> <p> This works without any modifications with pair. </p> <p> 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. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7742 Trac 1.4.3 Neil Groves Mon, 03 Mar 2014 01:50:10 GMT status, type changed https://svn.boost.org/trac10/ticket/7742#comment:1 https://svn.boost.org/trac10/ticket/7742#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> <li><strong>type</strong> <span class="trac-field-old">Bugs</span> → <span class="trac-field-new">Feature Requests</span> </li> </ul> Ticket