I have a linkedlist template to use, but I don't know how to use it or call the member functions.
template <class Object>
class List {
public:
List();
List(const List & rhs);
~List();
bool isEmpty() const;
void makeEmpty();
ListItr<Object> zeroth() const;
ListItr<Object> first() const;
template <class Object> Object List<Object>::insert(const Object & x, const ListItr<Object> & p);
ListItr<Object> find(const Object & x) const;
ListItr<Object> findPrevious(const Object & x) const;
void remove(const Object & x);
const List & operator=(const List & rhs);
private:
ListNode<Object> *header;
};
Is the line template <class Object> Object List<Object>::insert(const Object & x, const ListItr<Object> & p);
the correct way to declare a member function? What exactly is it doing? And how do I call the functions and pass values to them to insert or remove from this list?