|
|
| LinkedList ()=default |
| | Default Constructor.
|
| |
|
| LinkedList (const LinkedList< LLType > &)=delete |
| | Deleted copy constructor.
|
| |
| | LinkedList (LinkedList< LLType > &&other) noexcept=default |
| | Default Move constructor.
|
| |
|
virtual LinkedList< LLType > & | operator= (const LinkedList< LLType > &)=delete |
| | Default Copy assignment operator Prevents assigning the values of existing LinkedList<T> objects to other objects.
|
| |
| virtual LinkedList< LLType > & | operator= (LinkedList< LLType > &&other) noexcept=default |
| | Move assignment operator.
|
| |
|
virtual | ~LinkedList ()=default |
| | Default Destructor.
|
| |
| virtual LinkedList & | insertAtFront (const LLType &value) |
| | Inserts a value at the front of the linked list.
|
| |
| virtual LinkedList & | insertAtEnd (const LLType &value) |
| | Inserts a value at the end of the linked list.
|
| |
template<class LLType>
class LinkedList< LLType >
This is a template class that represents the linked list.
It can take any basic C++ data type. A linked list is a linear data structure, it can store multiple elements of the same data type. Each node in a linked list contains the data item and a pointer to the next node.