Boost.MultiIndex provides a class template
named multi_index_container
which enables the construction of containers
maintaining one or more indices with different sorting and access semantics.
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]
[options]
boost:header_only=True
Using vcpkg: Execute the command
vcpkg install boost-multi-index
Using CMake: Boost CMake support infrastructure allows you to use CMake directly to download, build and consume all of Boost or some specific libraries.
[multi_index]
tag at the beginning of the subject line)