This is just a simple realisation of the forward_list from STL. Many methods from original STL container absent here, but it is still quite interesting to read to understand how this container works :)
I update it and try to do it better :)
C++14 and x86/x64
- MyList() - default constructor
- ~MyList() - destructor
- array like operator T& operator [](const int index) - returns the element via index
- GetSize() - return the size of the lis
- pop_front() - erases the first element
- pop_back() - erases the last element
- clear() - erases all elements
- push_front(T data) - puts the element data in the beginning of the list
- push_back(T data) - puts the element data in the end of the list
- insert(T data, const int index) puts the element data in the position before index