#ifndef __LIST__H__ #define __LIST__H__ #include struct Node { size_t data_p; Node *next; }; class List { List(); ~List(); void push_back(int data); void push_front(int data); void insert(int data, int index); void pop_back(); void pop_front(); void remove(int index); void print(); int size(); bool empty(); void clear(); int front(); int back(); private: Node *head_; Node *tail_; int count_; }; #endif //!__LIST__H__