Kod: Zaznacz cały
virtual bool search(const Type& searchItem) const =0;
//Function to determine wheter searchItem is in the list.
//Postcondition: Returns true if searchItem is in the list, otherwise the value false is returned.
virtual void insertFirst(const Type& newItem) = 0;
//Function to insert newItem at the beginning of the list.
//Postcondition: first points to the new list, newItem is
//inserted at the beginning of the list,
//last points to the last node in the list,
//and count is incremented by 1