An open API service indexing awesome lists of open source software.

https://github.com/zriyansh/you-dont-know-cpp-stl

Internal Implementation of C++ STL — Standard Template Library.
https://github.com/zriyansh/you-dont-know-cpp-stl

competitive-coding competitive-programming cpp stl stl-algorithms vector

Last synced: 10 months ago
JSON representation

Internal Implementation of C++ STL — Standard Template Library.

Awesome Lists containing this project

README

          

# you-dont-know-cpp-STL
_Internal Implementation of C++ STL — Standard Template Library._

[STL] | [INTERNAL IMPLEMENTATION DATA STRUCTURE]

for e.g — 'set' STL, has its internal implementation(what it’s coded with) using a Red-Black Tree.

- **stack** — Array, List, Deque.
- **vector** — Dynamic Array
- **list** — Dynamic Array and Doubly Linked List
- **pair** — defined in header file




- **queue** — Array, List
- **deque** — Dynamic Array
- **priority_queue** — Heap




- **set** — Red-Black Tree
- **multiset** — Binary Search Tree
- **unordered set** — Hash Table




- **map** — Red Black Self-Balancing BST, Hash Table,
- **multimap** — Red Black Tree
- **unordered map**(4x faster than the map) — Hash Table

- **sort()** — uses IntroSort(a hybrid of Quicksort, Heapsort, and Insertion Sort), Faster than qsort().