Giter Club home page Giter Club logo

ft_containers's Introduction

ft_containers


Reimplementing C++ Containers, for study purposes :)

VECTOR ✅

Member functions

  • Constructor
  • Destructor
  • operator=

Iterators:

  • begin
  • end
  • rbegin
  • rend
  • cbegin
  • cend
  • crbegin
  • crend

Capacity:

  • size
  • max_size
  • resize
  • capacity
  • empty
  • reserve
  • shrink_to_fit

Element access:

  • operator[]
  • at
  • front
  • back
  • data

Modifiers:

  • assign
  • push_back
  • pop_back
  • insert
  • erase
  • swap
  • clear
  • emplace
  • emplace_back

Allocator:

  • get_allocator

Non-member function overloads

  • relational operators
  • swap

STACK ✅

Member functions

  • Constructor
  • empty
  • size
  • top
  • push
  • pop
  • swap

Non-member function overloads

  • relational operators
  • swap (stack)

Non-member class specializations

  • uses_allocator

MAP ⌛

Member functions

  • Constructor
  • Destructor
  • operator= // Operator[] , see how to insert with = after returning this value

Iterators:

  • begin
  • end
  • rbegin
  • rend
  • cbegin
  • cend
  • crbegin
  • crend

Capacity:

  • size
  • max_size
  • empty

Element access:

  • operator[]
  • at

Modifiers:

  • insert
    • Return last value inserted
    • Why inserting with [] is skipping numbers ?
  • erase //Mising erase for Position
  • swap
  • clear
  • emplace
  • emplace_hint

Observers:

  • key_comp
  • value_comp

Operations:

  • find
  • count
  • lower_bound
  • upper_bound
  • equal_range

Allocator:

  • get_allocator

ft_containers's People

Contributors

inigoromero avatar

Watchers

James Cloos avatar  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.