| | | | | |

Iterator Adaptors

  • ConstIterators
    • Adaptee: an iterator class
    • Adaptor: similar iterator class, without ability to mutate associated container
    • Utility: iterators that can be used when container is const
  • Reverse Iterators
    • Adaptee: an iterator class
    • Adaptor: an iterator of the same category
    • Utility: normal direction of increment/decrement is reversed - applies generic algorithm in reverse direction
  • Insert Iterators
    • Adaptee: a container class
    • Adaptor: an output iterator
    • Utility: replace overwrite with insert in generic algorithms
  • Stream Iterators
    • Adaptee: an istream/ostream class
    • Adaptor: an input/output iterator
    • Utility: read/write directly from/to istream/ostream in generic algorithms

| | Top of Page | 7. Iterators - 11 of 13