Question: the iterator class has a Node * mCurr = reinterpret _ cast ( - 1 ) ; and within that class are the following methods:

the iterator class has a
Node* mCurr = reinterpret_cast(-1);
and within that class are the following methods:
Iterator& operator++(){}
Iterator operator++(int){}
Iterator& operator--(){}
Iterator operator--(int){}
Type& operator*(){}
how to solve in c++
struct Node {
Type data;
Node* next = reinterpret_cast(-1);
Node* prev = reinterpre_cast (-1);
Node(const Type& _data, Node*_next = nullptr, Node*_prev = nullptr) : data(_data), next(_next), prev(_prev){}
};

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!