Skip to content

Repository files navigation

Boost.Unordered

BranchCIDrone statusBuild statuscodecovDepsDocumentationEnter the Matrix
BranchCIDrone statusBuild statuscodecovDepsDocumentationEnter the Matrix
BSL 1.0C++11 requiredHeader-only library

Boost.Unordered offers a catalog of hash containers with different standards compliance levels, performances and intented usage scenarios:

boost::unordered_setboost::unordered_mapboost::unordered_multisetboost::unordered_multimap

    Fully conformant implementations of std::unordered_[multi](set|map), but faster and up to the latest revisions of the standard even if you're working in an older version of C++ (heterogeneous lookup, try_emplace, contains, etc.)

boost::unordered_flat_setboost::unordered_flat_map

    The fastest of the lot. Based on open addressing, these containers slightly deviate from the standard in exchange for top performance.

boost::unordered_node_setboost::unordered_node_map

    Variations of boost::unordered_flat_(set|map) providing pointer stability.

boost::concurrent_flat_setboost::concurrent_flat_map

    High performance for multithreaded scenarios. Introducing a new non-standard, iterator-free API.

boost::concurrent_node_setboost::concurrent_node_map

    Variations of boost::concurrent_flat_(set|map) providing pointer stability.

Learn about Boost.Unordered

Boost.Unordered can be installed in a number of ways:

  • Download Boost and you're ready to go (this is a header-only library requiring no building).
  • Using Conan 2: In case you don't have it yet, add an entry for Boost in your conanfile.txt (the example requires at least Boost 1.86):
[requires]
boost/[>=1.86.0]
    If you're not using any compiled Boost library, the following will skip building altogether:
[options]
boost:header_only=True
  • Using vcpkg: Execute the command
vcpkg install boost-unordered

Support

Contribute

About

Boost.org unordered module

Resources

Stars

92 stars

Watchers

11 watching

Forks

Releases

Packages

Used by

Contributors

Languages