Implementing a postfix increment operator (iter++). The difference between a prefix and postfix increment operator is the return value of the operator. The prefix operator returns the result of the increment, while the postfix operator returns the iterator before the increment.
| 71 | // increment, while the postfix operator returns the iterator before |
| 72 | // the increment. |
| 73 | DLLIterator operator++(int) { |
| 74 | DLLIterator temp = *this; |
| 75 | ++*this; |
| 76 | return temp; |
| 77 | } |
| 78 | |
| 79 | // This is the equality operator for the DLLIterator class. It |
| 80 | // tests that the current pointers are the same. |
nothing calls this directly
no outgoing calls
no test coverage detected