| Home | Libraries | People | FAQ | More

##### remove(rtree<...> &, Range const &)

Remove a range of values from the container.

###### Description

Remove a range of values from the container. In contrast to the ``std::set`` or ``std::map erase()`` method it removes values equal to these passed as a range. Furthermore this method removes only one value for each one passed in the range, not all equal values.

It calls `rtree::remove(Range const&)`.

###### Synopsis

    template<typename Value,
             typename Parameters,
             typename IndexableGetter,
             typename EqualTo,
             typename Allocator,
             typename Range>
    rtree<Value, Parameters, IndexableGetter, EqualTo, Allocator>::size_type boost::geometry::index::remove(rtree< Value, Parameters, IndexableGetter, EqualTo, Allocator > & tree, Range const & rng)

###### Parameter(s)

Type | Name | Description
--- | --- | ---
`rtree< Value, Parameters, IndexableGetter, EqualTo, Allocator > &` | `tree` | The spatial index.
`Range const &` | `rng` | The range of values.

###### Returns

The number of removed values.