|
ADS
Algorithms and Data Structures
|
The range of the items of a SEQUENCE, beyond the book, so that the for on a range of C++ visits a sequence through its positions. More...
Files | |
| file | ADS/sequence/SequenceRange.h |
| The range of the items of a SEQUENCE [see ADT.h], beyond the book, so that the for on a range of C++ visits a sequence through its positions: for( const auto & x : range( s ) ) is the loop of the book that sets \( p \) to head(), reads read( p ) and sets \( p \) to next( p ) until finished( p ). | |
Classes | |
| class | ADS::SequenceRange< S > |
| the items of a SEQUENCE as a range of C++ More... | |
Functions | |
| template<Sequence S> | |
| SequenceRange< S > | ADS::range (const S &s) |
| the range of the items of \( s \) | |
The range of the items of a SEQUENCE, beyond the book, so that the for on a range of C++ visits a sequence through its positions.
The definitions, the invariants and the costs of the area are in Theory of sequences and lists.
| SequenceRange< S > ADS::range | ( | const S & | s | ) |
the range of the items of \( s \)