Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext
remove(rtree<...> &, Value const &)

Remove a value from the container.

Description

Remove a value from the container. In contrast to the std::set or std::map erase() method this function removes only one value from the container.

It calls rtree::remove(value_type const&).

Synopsis
template<typename Value,
         typename Parameters,
         typename IndexableGetter,
         typename EqualTo,
         typename Allocator>
rtree< Value, Parameters, IndexableGetter, EqualTo, Allocator >::size_type remove(rtree< Value, Parameters, IndexableGetter, EqualTo, Allocator > & tree, Value const & v)
Parameter(s)

Type

Name

Description

rtree< Value, Parameters, IndexableGetter, EqualTo, Allocator > &

tree

The spatial index.

Value const &

v

The value which will be removed from the index.

Returns

1 if value was removed, 0 otherwise.


PrevUpHomeNext