zenorachi / s21-containers

The "S21-Containers" project is a collection of container implementations similar to the containers in the C++ Standard Library.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

  • 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:
git clone https://github.com/zenorachi/s21-containers.git
  1. Navigate to s21-containers:
cd s21-containers:
  1. Use the .h files to include the containers in your code.

Example Usage

#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;
}

About

The "S21-Containers" project is a collection of container implementations similar to the containers in the C++ Standard Library.

License:MIT License


Languages

Language:C++ 97.9%Language:Makefile 1.8%Language:C 0.3%