An open API service indexing awesome lists of open source software.

https://github.com/chihebabiza/my-cpp-linked-list

A custom doubly linked list in C++ built using OOP, featuring core operations like insert, delete, update, and reverse. It showcases manual memory handling and class design without using STL.
https://github.com/chihebabiza/my-cpp-linked-list

cpp cpp-library doubly-linked-list oop

Last synced: about 2 months ago
JSON representation

A custom doubly linked list in C++ built using OOP, featuring core operations like insert, delete, update, and reverse. It showcases manual memory handling and class design without using STL.

Awesome Lists containing this project

README

          

# 📚 Custom Doubly Linked List in C++

This project is a custom implementation of a **doubly linked list** in **C++**, designed using object-oriented programming (OOP) and templates to support any data type.

---

## 🚀 Features

- Insert at beginning, end, or after a specific node
- Delete first, last, or specific node
- Access elements by index
- Update values
- Reverse the list
- Print the list
- Clear the list
- Check list size and if it's empty

---

## 🛠 How to Use

```cpp
#include "clsDblLinkedList.h"

int main() {
clsDblLinkedList list;
list.InsertAtBeginning(1);
list.InsertAtEnd(5);
list.PrintList(); // Output: 1 5
return 0;
}
````

---

## 🧠 Concepts Applied

* C++ Templates
* Pointers and dynamic memory
* Doubly linked data structure
* Clean class design (OOP)

---

## 📜 License

This project is licensed under the **MIT License**.
You are free to use, modify, and distribute it.

---

## 👨‍💻 Author

Developed with ❤️ by [Chiheb Abiza](https://github.com/chihebabiza)