C++ Containers

Introduction

C++ containers store a collection of elements. Containers include vectors, lists, maps, etc. Using Templates, C++ containers contain collections of primitives (e.g. ints) or custom classes (e.g. MyClass).

C++ Containers Flowchart

Choosing which C++ Container to use can be tricky, so here's a simple flowchart to help decide which Container is right for the job. C++ Containers Flowchart

This flowchart was based on Mikael Persson's post. This little graphic in the flowchart is from Megan Hopkins



2017-07-23
2017-07-28
C++ Pedia
Icon