[Boost-bugs] [Boost C++ Libraries] #11113: Support easy enumeration of all elements with BOOST_FOREACH

Subject: [Boost-bugs] [Boost C++ Libraries] #11113: Support easy enumeration of all elements with BOOST_FOREACH
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-03-13 10:23:41


#11113: Support easy enumeration of all elements with BOOST_FOREACH
-------------------------------------------+---------------------------
 Reporter: Thomas Trummer <th.trummer@…> | Owner: barendgehrels
     Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: geometry
  Version: Boost 1.57.0 | Severity: Cosmetic
 Keywords: |
-------------------------------------------+---------------------------
 {{{
 using namespace boost::geometry;
 typedef model::d2::point_xy<double> point2_t;

 index::rtree<point2_t, index::quadratic<16>> tree;

 BOOST_FOREACH(point2_t const& pt, tree)
 {
     std::cout << wkt(pt) << std::endl;
 }
 }}}


 Alternatively provide a predicate `bgi:all` that returns all elements and
 can be used with the `queried` adaptor.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11113>
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:18 UTC