# Boost.MultiIndex Reference

Advanced topics
Index
`multi_index_container` reference

## Contents

- Header dependencies
- Template class `multi_index_container`
- Index reference
- Ordered indices
- Sequenced indices
- Key Extraction

## Header dependencies

The following dependencies among headers of Boost.MultiIndex hold:

- `"boost/multi_index_container.hpp"` includes
  - `"boost/multi_index/indexed_by.hpp"`.
- `"boost/multi_index/ordered_index.hpp"` includes
  - `"boost/multi_index/tag.hpp"`.
- `"boost/multi_index/sequenced_index.hpp"` includes
  - `"boost/multi_index/tag.hpp"`.
- `"boost/multi_index/key_extractors.hpp"` includes
  - `"boost/multi_index/identity.hpp"`,
  - `"boost/multi_index/member.hpp"`,
  - `"boost/multi_index/mem_fun.hpp"` and
  - `"boost/multi_index/composite_key.hpp"`.

So, a program using Boost.MultiIndex must include `"boost/multi_index_container.hpp"`, the headers defining the index types to be used and possibly one or more key extraction headers for key-based indices. Note that all the key extractors provided by Boost.MultiIndex are automatically included with `"boost/multi_index/key_extractors.hpp"`.

Boost.MultiIndex is a header-only library, requiring no linking with additional object modules.

Advanced topics
Index
`multi_index_container` reference

Revised May 28th 2004

© Copyright 2003-2004 Joaquín M López Muñoz. Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)