Please check out the library's documentation to learn more.
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.
conanfile.txt (the example requires at least Boost 1.86):[requires]
boost/[>=1.86.0]
[options]
boost:header_only=True
vcpkg install boost-multi-index
[multi_index] tag at the beginning of the subject line)<h1>Boost Multi-index Containers Library</h1> <p><a href="https://github.com/boostorg/multi_index/tree/master"><img src="https://img.shields.io/badge/branch-master-brightgreen.svg" alt="Branch" /></a> <a href="https://github.com/boostorg/multi_index/actions/workflows/ci.yml"><img src="https://github.com/boostorg/multi_index/actions/workflows/ci.yml/badge.svg?branch=master" alt="CI" /></a> <a href="https://drone.cpp.al/boostorg/multi_index"><img src="https://img.shields.io/drone/build/boostorg/multi_index/master?server=https%3A%2F%2Fdrone.cpp.al&logo=drone&logoColor=%23CCCCCC&label=CI" alt="Drone status" /></a> <a href="https://pdimov.github.io/boostdep-report/master/multi_index.html"><img src="https://img.shields.io/badge/deps-master-brightgreen.svg" alt="Deps" /></a> <a href="https://www.boost.org/doc/libs/master/libs/multi_index"><img src="https://img.shields.io/badge/docs-master-brightgreen.svg" alt="Documentation" /></a> <a href="https://regression.boost.org/master/developer/multi_index.html"><img src="https://img.shields.io/badge/matrix-master-brightgreen.svg" alt="Enter the Matrix" /></a><br/> <a href="https://github.com/boostorg/multi_index/tree/develop"><img src="https://img.shields.io/badge/branch-develop-brightgreen.svg" alt="Branch" /></a> <a href="https://github.com/boostorg/multi_index/actions/workflows/ci.yml"><img src="https://github.com/boostorg/multi_index/actions/workflows/ci.yml/badge.svg?branch=develop" alt="CI" /></a> <a href="https://drone.cpp.al/boostorg/multi_index"><img src="https://img.shields.io/drone/build/boostorg/multi_index/develop?server=https%3A%2F%2Fdrone.cpp.al&logo=drone&logoColor=%23CCCCCC&label=CI" alt="Drone status" /></a> <a href="https://pdimov.github.io/boostdep-report/develop/multi_index.html"><img src="https://img.shields.io/badge/deps-develop-brightgreen.svg" alt="Deps" /></a> <a href="https://www.boost.org/doc/libs/develop/libs/multi_index"><img src="https://img.shields.io/badge/docs-develop-brightgreen.svg" alt="Documentation" /></a> <a href="https://regression.boost.org/develop/developer/multi_index.html"><img src="https://img.shields.io/badge/matrix-develop-brightgreen.svg" alt="Enter the Matrix" /></a><br/> <a href="https://www.boost.org/users/license.html"><img src="https://img.shields.io/badge/license-BSL_1.0-blue.svg" alt="BSL 1.0" /></a> <img alt="C++11 required" src="https://img.shields.io/badge/standard-C%2b%2b11-blue.svg"> <img alt="Header-only library" src="https://img.shields.io/badge/build-header--only-blue.svg"></p> <p><a href="http://boost.org/libs/multi_index">Boost.MultiIndex</a> provides a class template named <code>multi_index_container</code> which enables the construction of containers maintaining one or more indices with different sorting and access semantics.</p> <h2>Learn about Boost.MultiIndex</h2> <ul> <li><a href="https://boost.org/libs/multi_index">Online documentation</a></li> </ul> <h2>Install Boost.MultiIndex</h2> <ul> <li><a href="https://www.boost.org/users/download/">Download Boost</a> and you're ready to go (this is a header-only library requiring no building).</li> <li>Using Conan 2: In case you don't have it yet, add an entry for Boost in your <code>conanfile.txt</code> (the example requires at least Boost 1.86):</li> </ul> <pre class="highlightjs highlight"><code class="language- hljs">[requires] boost/[>=1.86.0] </code></pre> <ul>If you're not using any compiled Boost library, the following will skip building altogether:</ul> <pre class="highlightjs highlight"><code class="language- hljs">[options] boost:header_only=True </code></pre> <ul> <li>Using vcpkg: Execute the command</li> </ul> <pre class="highlightjs highlight"><code class="language- hljs">vcpkg install boost-multi-index </code></pre> <ul> <li>Using CMake: <a href="https://github.com/boostorg/cmake">Boost CMake support infrastructure</a> allows you to use CMake directly to download, build and consume all of Boost or some specific libraries.</li> </ul> <h2>Support</h2> <ul> <li>Join the <strong>#boost</strong> discussion group at <a href="https://cpplang.slack.com/">cpplang.slack.com</a> (<a href="https://cppalliance.org/slack/">ask for an invite</a> if you’re not a member of this workspace yet)</li> <li>Ask in the <a href="https://lists.boost.org/mailman/listinfo.cgi/boost-users">Boost Users mailing list</a> (add the <code>[multi_index]</code> tag at the beginning of the subject line)</li> <li><a href="https://github.com/boostorg/multi_index/issues">File an issue</a></li> </ul> <h2>Contribute</h2> <ul> <li><a href="https://github.com/boostorg/multi_index/pulls">Pull requests</a> against <strong>develop</strong> branch are most welcome. Note that by submitting patches you agree to license your modifications under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License, Version 1.0</a>.</li> </ul>
<h1>Boost Multi-index Containers Library</h1> <p><a href="https://github.com/boostorg/multi_index/tree/master"><img src="https://img.shields.io/badge/branch-master-brightgreen.svg" alt="Branch" /></a> <a href="https://github.com/boostorg/multi_index/actions/workflows/ci.yml"><img src="https://github.com/boostorg/multi_index/actions/workflows/ci.yml/badge.svg?branch=master" alt="CI" /></a> <a href="https://drone.cpp.al/boostorg/multi_index"><img src="https://img.shields.io/drone/build/boostorg/multi_index/master?server=https%3A%2F%2Fdrone.cpp.al&logo=drone&logoColor=%23CCCCCC&label=CI" alt="Drone status" /></a> <a href="https://pdimov.github.io/boostdep-report/master/multi_index.html"><img src="https://img.shields.io/badge/deps-master-brightgreen.svg" alt="Deps" /></a> <a href="https://www.boost.org/doc/libs/master/libs/multi_index"><img src="https://img.shields.io/badge/docs-master-brightgreen.svg" alt="Documentation" /></a> <a href="https://regression.boost.org/master/developer/multi_index.html"><img src="https://img.shields.io/badge/matrix-master-brightgreen.svg" alt="Enter the Matrix" /></a><br/> <a href="https://github.com/boostorg/multi_index/tree/develop"><img src="https://img.shields.io/badge/branch-develop-brightgreen.svg" alt="Branch" /></a> <a href="https://github.com/boostorg/multi_index/actions/workflows/ci.yml"><img src="https://github.com/boostorg/multi_index/actions/workflows/ci.yml/badge.svg?branch=develop" alt="CI" /></a> <a href="https://drone.cpp.al/boostorg/multi_index"><img src="https://img.shields.io/drone/build/boostorg/multi_index/develop?server=https%3A%2F%2Fdrone.cpp.al&logo=drone&logoColor=%23CCCCCC&label=CI" alt="Drone status" /></a> <a href="https://pdimov.github.io/boostdep-report/develop/multi_index.html"><img src="https://img.shields.io/badge/deps-develop-brightgreen.svg" alt="Deps" /></a> <a href="https://www.boost.org/doc/libs/develop/libs/multi_index"><img src="https://img.shields.io/badge/docs-develop-brightgreen.svg" alt="Documentation" /></a> <a href="https://regression.boost.org/develop/developer/multi_index.html"><img src="https://img.shields.io/badge/matrix-develop-brightgreen.svg" alt="Enter the Matrix" /></a><br/> <a href="https://www.boost.org/users/license.html"><img src="https://img.shields.io/badge/license-BSL_1.0-blue.svg" alt="BSL 1.0" /></a> <img alt="C++11 required" src="https://img.shields.io/badge/standard-C%2b%2b11-blue.svg"> <img alt="Header-only library" src="https://img.shields.io/badge/build-header--only-blue.svg"></p> <p><a href="http://boost.org/libs/multi_index">Boost.MultiIndex</a> provides a class template named <code>multi_index_container</code> which enables the construction of containers maintaining one or more indices with different sorting and access semantics.</p> <h2>Learn about Boost.MultiIndex</h2> <ul> <li><a href="https://boost.org/libs/multi_index">Online documentation</a></li> </ul> <h2>Install Boost.MultiIndex</h2> <ul> <li><a href="https://www.boost.org/users/download/">Download Boost</a> and you're ready to go (this is a header-only library requiring no building).</li> <li>Using Conan 2: In case you don't have it yet, add an entry for Boost in your <code>conanfile.txt</code> (the example requires at least Boost 1.86):</li> </ul> <pre class="highlightjs highlight"><code class="language- hljs">[requires] boost/[>=1.86.0] </code></pre> <ul>If you're not using any compiled Boost library, the following will skip building altogether:</ul> <pre class="highlightjs highlight"><code class="language- hljs">[options] boost:header_only=True </code></pre> <ul> <li>Using vcpkg: Execute the command</li> </ul> <pre class="highlightjs highlight"><code class="language- hljs">vcpkg install boost-multi-index </code></pre> <ul> <li>Using CMake: <a href="https://github.com/boostorg/cmake">Boost CMake support infrastructure</a> allows you to use CMake directly to download, build and consume all of Boost or some specific libraries.</li> </ul> <h2>Support</h2> <ul> <li>Join the <strong>#boost</strong> discussion group at <a href="https://cpplang.slack.com/">cpplang.slack.com</a> (<a href="https://cppalliance.org/slack/">ask for an invite</a> if you’re not a member of this workspace yet)</li> <li>Ask in the <a href="https://lists.boost.org/mailman/listinfo.cgi/boost-users">Boost Users mailing list</a> (add the <code>[multi_index]</code> tag at the beginning of the subject line)</li> <li><a href="https://github.com/boostorg/multi_index/issues">File an issue</a></li> </ul> <h2>Contribute</h2> <ul> <li><a href="https://github.com/boostorg/multi_index/pulls">Pull requests</a> against <strong>develop</strong> branch are most welcome. Note that by submitting patches you agree to license your modifications under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License, Version 1.0</a>.</li> </ul>