How do I overload the dereference operator? What would the declaration look like? I'm creating a list class, but I am have trouble with the dereference operator.
Here is my function for overloading the dereference operator
template <typename T>
T List_Iterator<T>::operator *(){
return current_link->value;
}
This is the data members in my iterator class
private:
/* Data Members */
Link<T>* current_link;
This is my link class
protected:
T value;