SHORTLIST20
English
Englishالعربية中文日本語한국어EspañolFrançaisहिन्दी
Programming

C++ container libraries

Data containers and collections for C++, ranked by GitHub stars

Updated · GitHub stars (stars)

Why these 20

Ranked by GitHub stars: how many developers bookmarked the project. Stars measure attention, not quality, so each row also shows forks, licence and the last push. Tools without a public repository have no star count and can't be ranked here.

Is this list useful?
  1. 1

    parallel-hashmap

    A family of header-only, very fast and memory-friendly hashmap and btree containers [Apache2] website

    3,231 stars 317 forkslast push 2026-11-06C++Apache-2.0

  2. 2

    CRoaring

    Roaring bitmaps in C (and C++), with SIMD optimizations. [Apache-2.0]

    1,906 stars 344 forkslast push 2026-11-21CNOASSERTION

  3. 3

    flat_hash_map

    A very fast flat hashtable with Fibonacci hashing.

    1,863 stars 205 forkslast push 2023-09-27C++

  4. 4

    frozen

    a header-only, constexpr alternative to gperf for C++14 users. [Apache-2.0]

    1,590 stars 122 forkslast push 2026-11-08C++Apache-2.0

  5. 5

    unordered_dense ▲1

    A fast & densely stored hashmap and hashset based on robin-hood backward shift deletion. [MIT]

    1,522 stars 127 forkslast push 2026-11-11C++MIT

  6. 6

    robin-map ▼1

    Fast hash map and hash set using robin hood hashing. [MIT]

    1,520 stars 150 forkslast push 2026-06-13C++MIT

  7. 7

    sparsepp

    A fast, memory efficient hash map for C++. [BSD 3-clause]

    1,316 stars 126 forkslast push 2026-09-19C++NOASSERTION

  8. 8

    PGM-index

    A data structure that enables fast lookup, predecessor, range searches and updates in arrays of billions of items using orders of magnitude less space than...

    879 stars 104 forkslast push 2024-11-28C++Apache-2.0

  9. 9

    hat-trie

    C++ implementation of a fast and memory efficient HAT-trie. [MIT]

    877 stars 126 forkslast push 2025-11-11C++MIT

  10. 10

    Hopscotch map

    A fast header-only hash map which uses hopscotch hashing for collisions resolution. [MIT]

    856 stars 71 forkslast push 2025-11-02C++MIT

  11. 11

    marisa-trie

    Matching Algorithm with Recursively Implemented StorAge. [BSD-2-Clause/LGPL-2.1]

    639 stars 105 forkslast push 2026-07-28C++NOASSERTION

  12. 12

    ordered-map

    A C++ hash map and hash set which preserves the order of insertion. [MIT]

    581 stars 80 forkslast push 2026-06-13C++MIT

  13. 13

    plf::colony

    An unordered "bag"-type container which outperforms std containers in high-modification scenarios while maintaining permanent pointers to non-erased...

    513 stars 39 forkslast push 2026-11-20C++Zlib

  14. 14

    fixed-containers

    Header-only C++20 library that provides fixed capacity constexpr containers. [MIT]

    470 stars 66 forkslast push 2026-09-24C++MIT

  15. 15

    LSHBOX

    A c++ toolbox of locality-sensitive hashing (LSH), provides several popular LSH algorithms, also support Python and MATLAB. [GPL]

    293 stars 77 forkslast push 2017-06-29C++GPL-3.0

  16. 16

    Hashmaps

    Implementation of open addressing hash table algorithms in C++. [MIT]

    254 stars 85 forkslast push 2022-01-13C++MIT

  17. 17

    fifo_map

    A FIFO-ordered associative container for C++. [MIT]

    213 stars 83 forkslast push 2025-11-23C++MIT

  18. 18

    dynamic_bitset

    Simple Useful Libraries: C++17/20 header-only dynamic bitset. [MIT] website

    182 stars 15 forkslast push 2026-09-16C++MIT

  19. 19

    plf::list

    A std::list implementation which removes range splicing in order to enable cache-friendlier structure, yielding significant performance gains. [zLib] website

    175 stars 24 forkslast push 2026-11-20C++Zlib

  20. 20

    tree.hh

    An STL-like C++ header-only tree library. [GPL2+]

    156 stars 34 forkslast push 2024-07-19C++GPL-3.0

How it is measured

Every tool in the Containers section(s) of the community list fffaraz/awesome-cpp on GitHub with a public repository, ranked by GitHub stars from the GitHub API; archived repositories are left out. Added by the daily list generator.

References

  1. fffaraz/awesome-cpp: Containers, GitHub community list (list text MIT; star counts from the GitHub API). Checked 2026-11-22 06:09 UTC.
  2. fffaraz/awesome-cpp (Containers), GitHub community list, 27 tools with a public repository.