Skip to content

Latest commit

 

History

History
34 lines (21 loc) · 845 Bytes

README.md

File metadata and controls

34 lines (21 loc) · 845 Bytes

FT_CONTAINERS

  • vector
  • map
  • stack
  • set

GUIDE

1 Iterators

https://cplusplus.com/reference/iterator/iterator/

Iterators help you access a range of elements, most common type of iterators are pointers. Some iterators can be incremented, or acceses randomly.
To start the containers projects, you would need first to do an iterator base class, so you can access the elements of the container type.

Iterators & Reverse Iterators

Elements
  • a) typedef T value_type;
  • b) typedef ptrdiff_t difference_type;
  • c) typedef T* pointer;
  • d) typedef T& reference;
  • e) typedef std::random_access_iterator_tag iterator_category;

Enable If

Lexicographical compare and equal

Binary Trees, 2-3 Trees and Binary Trees