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 2023. The current version is 1.89.0.
iterator_range is now implemented
by implementing the member functions size(), operator[] via inheritance of base-classes specialized
by the traversal type of the underlying iterator. This is normally requires
no alteration of code. It does mean that types that derive from iterator_range
may need to prefix this-> to the various member functions.
Additionally it has been noted that some calling code was relying on
member functions such as size() being present despite the underlying
iterators not being random-access due to iterator_reference<Iter>::type
not being a reference. The suggested refactoring is to use boost::size(rng).
iterator_range pop_front()
has been deprecated and is replaced by drop_front(). Similarly
pop_back() has been replaced
by drop_back()`.