Implement the C++ non-ordered LList class as specifed below
#ifndef LLIST_H
#define LLIST_H
namespace egre246 {
class LList {
public:
typedef int value_type;
typedef size_t size_type;
private:
////////////////////////////
class LLNode {
public:
value_type data;
LLNode* next;
LLNode(const value_type& data_ = value_type(),
LLNode* next_ = nullptr) {
data = data_; next = next_;
}
LLNode(LLNode& node) {
data = node.data; next = node.next;
}
};
////////////////////////////
LLNode *head, *tail, // head points to first node in list, tailthe last node;
// head = tail = nullptr when list is empty
*curr; // for iterator
size_type size;
void clr(LLNode*); // deallocates all nodes in list
public:
LList();
LList(const LList&); // copy constructor
~LList() { clear(); }
int getSize() const;
bool isEmpty() const;
void clear(); // deallocates all nodes; always invalidatesiterator
value_type get(int) const; // argument is index
PayPal Gateway not configured
PayPal Gateway not configured