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 an older version of Boost and was released in 2022. The current version is 1.89.0.
Returns the iterator pointing at the begin of the rtree values range.
This method returns the iterator which may be used to iterate over all values stored in the rtree.
const_iteratorbegin()
const
The iterator pointing at the begin of the range.
// Copy all values into the vector std::copy(tree.begin(), tree.end(), std::back_inserter(vec)); for ( Rtree::const_iterator it = tree.begin() ; it != tree.end() ; ++it ) { // do something with value } // C++11 (auto) for ( auto it = tree.begin() ; it != tree.end() ; ++it ) { // do something with value } // C++14 (generic lambda expression) std::for_each(tree.begin(), tree.end(), [](auto const& val){ // do something with value })
ForwardIterator
If allocation throws.
![]() |
Warning |
|---|---|
The modification of the rtree may invalidate the iterators. |