#include #include using namespace std; #include "SLinkedList.h" /* * Constructor */ template SLinkedList::SLinkedList() : _head(NULL){} /* * Function to test if the list is empty * Return: boolean value true if it is empty */ template bool SLinkedList::empty() const { } /* * Function to return the front of the lists * Return: A constant reference to the front of the list */ template const Object& SLinkedList::front() const { //check if empty if (empty()) throw domain_error("list is empty"); //if not, return reference to data in the head node } /* * Function to remove the front of the list */ template void SLinkedList::removeFront() { } /* * Function to add a node to the front of the list * Input parameter: a variable of type Object to insert */ template void SLinkedList::addFront(const Object& e) { } /* * Destructor */ template SLinkedList::~SLinkedList() { } //operator= template SLinkedList& SLinkedList::operator=(const SLinkedList& other) { if (this != &other) { //your code here, for HW } return *this; } //copy constructor template SLinkedList::SLinkedList(const SLinkedList& other) { } //end of copy constructor template void SLinkedList::printlist() { }