Code Monkey home page Code Monkey logo

ft_containers's Introduction

ft_container

Description

ft_container is a project that aims to implement some of the standard C++ containers and their associated algorithms, as specified in the C++98 standard. This project is part of the curriculum at 42 School.

The following containers should be implemented:\

vector
stack
map
set

Additionally, the following non-member functions must also be implemented:

algorithm (std::equal & std::lexicographical_compare)
iterators
reverse_iterator
enable_if
is_integral
pair

vector

The vector container is a dynamic array that can resize itself automatically as elements are inserted or deleted. It supports random access iterators and is similar to a traditional C-style array.

stack

The stack container is a container adapter that provides a LIFO (last-in first-out) stack. It only allows insertion and deletion of elements from the top of the stack.

map

The map container is an associative container that stores key-value pairs. It is implemented using a self-balancing binary search tree, which allows for fast lookup times.

set

The set container is an associative container that stores unique elements in a sorted order. It is also implemented using a self-balancing binary search tree.

iterators

The iterator library provides a collection of iterator types for iterating over ranges of elements in containers. Iterators are used to access and manipulate the elements in a container.

reverse_iterator

The reverse_iterator library provides an iterator adapter that iterates over a range of elements in reverse order.

The implementation of ft_container should be based on the C++ standard template library (STL) and must pass a series of tests in order to be considered complete.

ft_containers's People

Contributors

ke4s avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.