C++ STL Containers

use examples for STL containers

1.0 Contents

STL-Containers provides simple demonstrations for each of the STL containers:
  • array
    indexable container for a fixed number of items, has size() method
  • deque
    container with push_front, pop_front, push_back, pop_back methods
  • list
    doubly-linked list
  • map
    ordered associative container for key-value pairs
  • native array
    language defined array that uses global methods to simulate STL operations
  • queue
    FIFO container with push, pop, front, and back methods
  • set
    ordered associative container for keys
  • singleList
    singly-linked list
  • stack
    LIFO container with push and pop methods
  • string
    container of characters with STL operations
  • unordered_map
    hashed container of key-value pairs
  • unordered_set
    hashed container of keys
  • vector
    indexable sequence container with push_back and pop_back methods

2.0 Build

Code was built with Visual Studio Community Edition - 2019 and tested on Windows 10