MCPcopy Create free account
hub / github.com/cmu-db/15445-bootcamp / operator++

Method operator++

src/iterator.cpp:73–77  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected