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 = curr->prev;
pastTheEnd =(curr == nullptr);
}
return *this;
}``` This seems right to me, but my test case that is testing the IteratorDecrement is not passing. I'm not sure what I'm doing wrong, thanks for any help. I will post the instructions for the Decrement as a photo.
 Here is my IteratorDecrement: ```// operator-- prefix Iterator& operator--(); ``` And

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!