https://github.com/zenorachi/s21-containers
The "S21-Containers" project is a collection of container implementations similar to the containers in the C++ Standard Library.
https://github.com/zenorachi/s21-containers
algorithms avl-tree cpp list makefile map queue set stack stl-containers tree
Last synced: 11 months ago
JSON representation
The "S21-Containers" project is a collection of container implementations similar to the containers in the C++ Standard Library.
- Host: GitHub
- URL: https://github.com/zenorachi/s21-containers
- Owner: zenorachi
- License: mit
- Created: 2023-04-18T20:15:32.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-17T14:17:00.000Z (almost 3 years ago)
- Last Synced: 2025-04-11T04:48:46.231Z (about 1 year ago)
- Topics: algorithms, avl-tree, cpp, list, makefile, map, queue, set, stack, stl-containers, tree
- Language: C++
- Homepage:
- Size: 61.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# S21-Containers
The "S21-Containers" project is a collection of container implementations similar to the containers in the C++ Standard Library. These containers provide convenient data structures for storing and managing collections of elements.
## Features
- The project includes the following containers:
- [Vector](https://en.cppreference.com/w/cpp/container/vector), [Array](https://en.cppreference.com/w/cpp/container/array)
- [List](https://en.cppreference.com/w/cpp/container/list)
- [Queue](https://en.cppreference.com/w/cpp/container/queue), [Stack](https://en.cppreference.com/w/cpp/container/stack)
- [Map](https://en.cppreference.com/w/cpp/container/map), [Set](https://en.cppreference.com/w/cpp/container/set), [Multiset](https://en.cppreference.com/w/cpp/container/multiset)
- The containers offer an interface similar to the C++ Standard Library, making it easy to adapt and understand the code.
## Installation and Usage
1. Clone the repository:
```sh
git clone https://github.com/zenorachi/s21-containers.git
```
2. Navigate to s21-containers:
```sh
cd s21-containers:
```
3. Use the `.h` files to include the containers in your code.
## Example Usage
```cpp
#include "s21_containers.h"
int main() {
s21::vector myVector;
myVector.push_back(10);
myVector.push_back(20);
myVector.push_back(30);
std::cout << myVector[0] << " ";
return 0;
}
```