[Boost-bugs] [Boost C++ Libraries] #10615: R-Tree: add constructor that converts any range<T> to the trees value type

Subject: [Boost-bugs] [Boost C++ Libraries] #10615: R-Tree: add constructor that converts any range<T> to the trees value type
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-10-05 15:36:01


#10615: R-Tree: add constructor that converts any range<T> to the trees value type
------------------------------+---------------------------
 Reporter: anonymous | Owner: barendgehrels
     Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: geometry
  Version: Boost 1.56.0 | Severity: Optimization
 Keywords: |
------------------------------+---------------------------
 I'd suggest adding a new constructor to rtree for bulk loading. It should
 take a range of any value and a function that converts the ranges value to
 the rtrees value.

 My use case would be a (in my example: random access) container of points
 I need to put into an rtree with rtree::value_type being std::pair<point,
 container_index>. At the moment I need to
 1. transform my container of points to a container of pairs
 1. bulk load that new container of pairs
 1. let rtree constructor copy my container of pairs
 1. delete my intermediate container of pairs

 I'd really like to move the transformation done in the first step into
 rtree ctor to avoid creating a temporary container just to copy it into
 rtree and destroy it immediately after the rtree is created.

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