Code Monkey home page Code Monkey logo

ft_container's Introduction

Ft_container

Designed C++ container classes (vector/list/map) from ground up and free from reliance existing libraries, using template metaprogramming techniques, that behave exactly like the C++ 98 STL containers.

Requirmenet and Limitations

The containers in Ft_container adhere to the following requirements:

  • They must have all public member functions from C++98.
  • The corresponding iterators must also be implemented.
  • The project includes the following containers:
    • Vector
    • Map
    • Stack

How to use:

The containers are templated, meaning you can use them with any type, just like you would any other STL containers. Just include the .hpp corresponding to the container you want to use, and use it! The difference is the namespace where you would call std::vector, you now call ft::vector. Example of use:


  #include "includes/vector.hpp"
  #include "includes/map.hpp"
  #include "includes/stack.hpp"
  
  // Containers are in the 'ft' namespace
  ft::vector vector;
  ft::map map;
  ft:stack stack;

Sources:

Here are some useful references for working with C++ containers:

Testers:

You can use these testers to validate the correctness of your containers:

ft_container's People

Contributors

shimazadeh avatar

Stargazers

Bruno 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.