Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
SleepiCaffeine committed Jun 19, 2023
2 parents 8b12752 + 339da37 commit 2938b80
Showing 1 changed file with 52 additions and 1 deletion.
53 changes: 52 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,53 @@
# Data-Structures-CPP
[WIP] My rendition of every commonly used data-structure (that is not supported) in C++.
<center>

![WIP_STATUS](https://img.shields.io/badge/STATUS-WIP-RED?style=for-the-badge&color=red)
![REPO_STARS](https://img.shields.io/github/stars/SleepiCaffeine/Data-Structures-CPP?style=for-the-badge&label=stars&color=ffc336)
![FORK_STATS](https://img.shields.io/github/forks/SleepiCaffeine/Data-Structures-CPP?style=for-the-badge&color=white)

</center>

<center>

![FOLLOW .-.](https://img.shields.io/github/followers/SleepiCaffeine?style=social&labelColor=purple&color=purple)

</center>


A header-only, STL-like library for node-type data structures that are not natively supported by **STL**. All headers are documented using Doxygen comments. <br>
Currently - all supported data structures and class are [here](https://github.com/SleepiCaffeine/Data-Structures-CPP/blob/main/Data%20Structures/currentVersion.md).

## How to use
Simply include `data_structues.hpp` or any individual header, and start using it. If you are unsure how to clone a repository - [read here](https://docs.github.com/en/repositories/creating-and-managing-repositories/cloning-a-repository).

## Example of use
All classes and types will have their own users-guide, and hopefully a Doxygen generated documentation PDF.
```
#include "Data Structures\node.h"
#include <iostream>
int main() {
node<int>* my_node = new node<int>(10); // Creates a node with value 10, and points to nothing
auto my_other_node = new node<int>(20); // Creates a node with value 20, and points to nothing
my_node->set_next(my_other_node); // Now `my_node` points to `my_other_node`
std::cout << my_node->get_next()->get_data() << "\n"; // Output is 20
auto copy_node = node<int>(*my_node);
my_node->set_data(35);
std::cout << my_node->get_data() << "\n"; // Output is 35
std::cout << copy_node.get_data() << "\n"; // Output is 10
return 0;
}
```

## Issues and Pull Requests
Currently there is no template for providing issues, so anything is appreciated!

## Authors
I am the only developer working on this

## License
This project is protected by the MIT license.

0 comments on commit 2938b80

Please sign in to comment.