|
ADS
Algorithms and Data Structures
|
The traversal that Boost reads from the iterators of ADS whose reference is built, beyond the book, compiled only with ADS_WITH_BOOST. More...
Go to the source code of this file.
The traversal that Boost reads from the iterators of ADS whose reference is built, beyond the book, compiled only with ADS_WITH_BOOST.
The iterators of the dictionaries, of the search trees and of the succinct structures make their item when they are read (a pair of references, a bit, an integer), so that they declare the legacy category std::input_iterator_tag while they model std::forward_iterator or more; Boost.Range, Boost.Graph and the rest of Boost read the traversal from the legacy category, and would take them as single pass, rejecting them where a forward range is needed (boost::max_element()). The specialization of boost::iterators::iterator_traversal of this header gives such an iterator the traversal of its concept of C++20 (forward, bidirectional or random access), and only to the iterators of ADS (those whose associated namespaces include ADS, found by a probe that argument-dependent lookup sees only there), so that the iterators of the other libraries in the same program keep the traversal they declare. The header must be included before the headers of Boost that read the traversal.