https://github.com/zpnst/smart-list
Functional doubly linked list
https://github.com/zpnst/smart-list
cpp datastructures doubly-linked-list oop
Last synced: 14 days ago
JSON representation
Functional doubly linked list
- Host: GitHub
- URL: https://github.com/zpnst/smart-list
- Owner: zpnst
- Created: 2023-10-19T17:43:15.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-11-25T20:07:13.000Z (over 1 year ago)
- Last Synced: 2024-05-11T21:37:34.886Z (about 1 year ago)
- Topics: cpp, datastructures, doubly-linked-list, oop
- Language: C++
- Homepage:
- Size: 24.4 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Smart List
## Structure
The list is developed on the basis of a template class, which is based on a doubly linked list## std::shared_ptr & std::weak_ptr
Using std::weak_ptr as a pointer to the previous element of a node,
together with std::shared_ptr helped to avoid cyclic references## Different types of constructors are implemented
## Functions for working with a list
1) Function for adding an item to any place in the list
2) Function for deleting an item anywhere in the list
3) Function for creating a set from a list
4) Function for sorting the list based on bubble sort
5) Operator [] overload
6) Function for formatted list output## And functions for convenience:
## Operators overloading
Overload has been implemented for *, +, / operators
They are responsible for operations between a List and a Variable and a List and a List
## See you soon...