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.
-
The project includes the following containers:
-
The containers offer an interface similar to the C++ Standard Library, making it easy to adapt and understand the code.
- Clone the repository:
git clone https://github.com/zenorachi/s21-containers.git
- Navigate to s21-containers:
cd s21-containers:
- Use the
.h
files to include the containers in your code.
#include "s21_containers.h"
int main() {
s21::vector<int> myVector;
myVector.push_back(10);
myVector.push_back(20);
myVector.push_back(30);
std::cout << myVector[0] << " ";
return 0;
}