Just want to make sure what the iterator exactly does in a linked list. Is it like the push function but this is for nodes?
1 2 3 4
linkedListIterator<Type> operator++();
//Overload the preincrement operator.
//Postcondition: The iterator is advanced to the next node.
and Im also having trouble understanding what these two lines mean.
1 2 3 4 5
booloperator==(const linkedListIterator<Type>& right) const;
//Overload the equality operator.
//Postcondition: Returns true if this iterator is equal to
// the iterator specified by right, otherwise it returns
// false.
1 2 3 4 5
booloperator!=(const linkedListIterator<Type>& right) const;
//Overload the not equal to operator.
//Postcondition: Returns true if this iterator is not equal to
// the iterator specified by right, otherwise it returns
// false.