Question: Here is my IteratorDecrement: ` ` ` / / operator - - prefix Iterator& operator - - ( ) ; ` ` ` And here
Here is my IteratorDecrement: operator prefix
Iterator& operator; And here is the implementation: Operator
template
Iterator& Iterator::operator
if pastTheEnd
pastTheEnd false;
else if curr
curr currprev;
pastTheEnd curr nullptr;
return this;
This seems right to me but my test case that is testing the IteratorDecrement is not passing. Im not sure what Im doing wrong, thanks for any help. I will post the instructions for the Decrement as a photo.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
