Q:

List the five iterator categories and the operations that each supports

0

List the five iterator categories and the operations that each supports.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Iterator Category      | Supported Operations
-----------------------|---------------------
input iterator         | `==`  `!=`  `++`  `*`(only on rhs)  `->`  single-pass
output iterator        | `++`  `*`(only on lhs)  single-pass
forward iterator       | input&output iterator operations  multi-pass
bidirectional iterator | forward iterator operations  `--`
random-access iterator | bidirectional iterator operations  `<`  `<=`  `>`  `>=`  `+`  `+=`  `-`(iter`-`integral, iter`-`iter)  `-=`  `[]`


Iterator Hierarchy

        input iterator          output iterator
              |
       forward iterator
              |
    bidirectional iterator
              |
    random-access iterator

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now