1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213
|
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Chapter 6. Boost.Container</title>
<link rel="stylesheet" href="../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
<link rel="up" href="libraries.html" title="Part I. The Boost C++ Libraries (BoostBook Subset)">
<link rel="prev" href="SignedInteger.html" title="Concept SignedInteger">
<link rel="next" href="container/move_emplace.html" title="Efficient insertion">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../boost.png"></td>
<td align="center"><a href="../../index.html">Home</a></td>
<td align="center"><a href="../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="SignedInteger.html"><img src="../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="libraries.html"><img src="../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="container/move_emplace.html"><img src="../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="chapter">
<div class="titlepage"><div>
<div><h2 class="title">
<a name="container"></a>Chapter 6. Boost.Container</h2></div>
<div><div class="author"><h3 class="author">
<span class="firstname">Ion</span> <span class="surname">Gaztanaga</span>
</h3></div></div>
<div><p class="copyright">Copyright © 2009-2011 Ion Gaztanaga</p></div>
<div><div class="legalnotice">
<a name="container.legal"></a><p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p>
</div></div>
</div></div>
<div class="toc">
<p><b>Table of Contents</b></p>
<dl>
<dt><span class="section"><a href="container.html#container.intro">Introduction</a></span></dt>
<dd><dl>
<dt><span class="section"><a href="container.html#container.intro.introduction_building_container">Building
Boost.Container</a></span></dt>
<dt><span class="section"><a href="container.html#container.intro.tested_compilers">Tested compilers</a></span></dt>
</dl></dd>
<dt><span class="section"><a href="container/move_emplace.html">Efficient insertion</a></span></dt>
<dd><dl>
<dt><span class="section"><a href="container/move_emplace.html#container.move_emplace.move_containers">Move-aware containers</a></span></dt>
<dt><span class="section"><a href="container/move_emplace.html#container.move_emplace.emplace">Emplace: Placement insertion</a></span></dt>
</dl></dd>
<dt><span class="section"><a href="container/containers_of_incomplete_types.html">Containers of
Incomplete Types</a></span></dt>
<dd><dl>
<dt><span class="section"><a href="container/containers_of_incomplete_types.html#container.containers_of_incomplete_types.recursive_containers">Recursive
containers</a></span></dt>
<dt><span class="section"><a href="container/containers_of_incomplete_types.html#container.containers_of_incomplete_types.type_erasure">Type
Erasure</a></span></dt>
</dl></dd>
<dt><span class="section"><a href="container/non_standard_containers.html">Non-standard containers</a></span></dt>
<dd><dl>
<dt><span class="section"><a href="container/non_standard_containers.html#container.non_standard_containers.stable_vector"><span class="emphasis"><em>stable_vector</em></span></a></span></dt>
<dt><span class="section"><a href="container/non_standard_containers.html#container.non_standard_containers.flat_xxx"><span class="emphasis"><em>flat_(multi)map/set</em></span>
associative containers</a></span></dt>
<dt><span class="section"><a href="container/non_standard_containers.html#container.non_standard_containers.slist"><span class="emphasis"><em>slist</em></span></a></span></dt>
</dl></dd>
<dt><span class="section"><a href="container/Cpp11_conformance.html">C++11 Conformance</a></span></dt>
<dd><dl>
<dt><span class="section"><a href="container/Cpp11_conformance.html#container.Cpp11_conformance.move_emplace">Move and Emplace</a></span></dt>
<dt><span class="section"><a href="container/Cpp11_conformance.html#container.Cpp11_conformance.alloc_traits_move_traits">Stateful
allocators</a></span></dt>
<dt><span class="section"><a href="container/Cpp11_conformance.html#container.Cpp11_conformance.initializer_lists">Initializer
lists</a></span></dt>
<dt><span class="section"><a href="container/Cpp11_conformance.html#container.Cpp11_conformance.forward_list"><code class="computeroutput"><span class="identifier">forward_list</span><span class="special"><</span><span class="identifier">T</span><span class="special">></span></code></a></span></dt>
<dt><span class="section"><a href="container/Cpp11_conformance.html#container.Cpp11_conformance.Vector_bool"><code class="computeroutput"><span class="identifier">vector</span><span class="special"><</span><span class="keyword">bool</span><span class="special">></span></code></a></span></dt>
</dl></dd>
<dt><span class="section"><a href="container/other_features.html">Other features</a></span></dt>
<dt><span class="section"><a href="container/history_and_reasons.html">History and reasons to use
Boost.Container</a></span></dt>
<dd><dl>
<dt><span class="section"><a href="container/history_and_reasons.html#container.history_and_reasons.boost_container_history">Boost.Container
history</a></span></dt>
<dt><span class="section"><a href="container/history_and_reasons.html#container.history_and_reasons.Why_boost_container">Why
Boost.Container?</a></span></dt>
</dl></dd>
<dt><span class="section"><a href="container/index.html">Indexes</a></span></dt>
<dt><span class="section"><a href="boost_container_header_reference.html">Boost.Container Header Reference</a></span></dt>
<dd><dl>
<dt><span class="section"><a href="boost_container_header_reference.html#header.boost.container.container_fwd_hpp">Header <boost/container/container_fwd.hpp></a></span></dt>
<dt><span class="section"><a href="boost_container_header_reference.html#header.boost.container.deque_hpp">Header <boost/container/deque.hpp></a></span></dt>
<dt><span class="section"><a href="boost_container_header_reference.html#header.boost.container.flat_map_hpp">Header <boost/container/flat_map.hpp></a></span></dt>
<dt><span class="section"><a href="boost_container_header_reference.html#header.boost.container.flat_set_hpp">Header <boost/container/flat_set.hpp></a></span></dt>
<dt><span class="section"><a href="boost_container_header_reference.html#header.boost.container.list_hpp">Header <boost/container/list.hpp></a></span></dt>
<dt><span class="section"><a href="boost_container_header_reference.html#header.boost.container.map_hpp">Header <boost/container/map.hpp></a></span></dt>
<dt><span class="section"><a href="boost_container_header_reference.html#header.boost.container.set_hpp">Header <boost/container/set.hpp></a></span></dt>
<dt><span class="section"><a href="boost_container_header_reference.html#header.boost.container.slist_hpp">Header <boost/container/slist.hpp></a></span></dt>
<dt><span class="section"><a href="boost_container_header_reference.html#header.boost.container.stable_vector_hpp">Header <boost/container/stable_vector.hpp></a></span></dt>
<dt><span class="section"><a href="boost_container_header_reference.html#header.boost.container.string_hpp">Header <boost/container/string.hpp></a></span></dt>
<dt><span class="section"><a href="boost_container_header_reference.html#header.boost.container.vector_hpp">Header <boost/container/vector.hpp></a></span></dt>
</dl></dd>
<dt><span class="section"><a href="container/acknowledgements_notes.html">Acknowledgements, notes
and links</a></span></dt>
<dt><span class="section"><a href="container/release_notes.html">Release Notes</a></span></dt>
<dd><dl>
<dt><span class="section"><a href="container/release_notes.html#container.release_notes.release_notes_boost_1_49_00">Boost
1.49 Release</a></span></dt>
<dt><span class="section"><a href="container/release_notes.html#container.release_notes.release_notes_boost_1_48_00">Boost
1.48 Release</a></span></dt>
</dl></dd>
</dl>
</div>
<div class="section">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="container.intro"></a><a class="link" href="container.html#container.intro" title="Introduction">Introduction</a>
</h2></div></div></div>
<div class="toc"><dl>
<dt><span class="section"><a href="container.html#container.intro.introduction_building_container">Building
Boost.Container</a></span></dt>
<dt><span class="section"><a href="container.html#container.intro.tested_compilers">Tested compilers</a></span></dt>
</dl></div>
<p>
<span class="bold"><strong>Boost.Container</strong></span> library implements several
well-known containers, including STL containers. The aim of the library is
to offers advanced features not present in standard containers or to offer
the latest standard draft features for compilers that comply with C++03.
</p>
<p>
In short, what does <span class="bold"><strong>Boost.Container</strong></span> offer?
</p>
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
<li class="listitem">
Move semantics are implemented, including move emulation for pre-C++11
compilers.
</li>
<li class="listitem">
New advanced features (e.g. placement insertion, recursive containers)
are present.
</li>
<li class="listitem">
Containers support stateful allocators and are compatible with <span class="bold"><strong>Boost.Interprocess</strong></span> (they can be safely placed in
shared memory).
</li>
<li class="listitem">
The library offers new useful containers:
<div class="itemizedlist"><ul class="itemizedlist" type="circle">
<li class="listitem">
<code class="computeroutput"><a class="link" href="boost/container/flat_map.html" title="Class template flat_map">flat_map</a></code>,
<code class="computeroutput"><a class="link" href="boost/container/flat_map.html" title="Class template flat_map">flat_set</a></code>,
<code class="computeroutput"><a class="link" href="boost/container/flat_map.html" title="Class template flat_map">flat_multiset</a></code>
and <code class="computeroutput"><a class="link" href="boost/container/flat_map.html" title="Class template flat_map">flat_multiset</a></code>:
drop-in replacements for standard associative containers but more
memory friendly and with faster searches.
</li>
<li class="listitem">
<code class="computeroutput"><a class="link" href="boost/container/stable_vector.html" title="Class template stable_vector">stable_vector</a></code>:
a std::list and std::vector hybrid container: vector-like random-access
iterators and list-like iterator stability in insertions and erasures.
</li>
<li class="listitem">
<code class="computeroutput"><a class="link" href="boost/container/slist.html" title="Class template slist">slist</a></code>: the classic
pre-standard singly linked list implementation offering constant-time
<code class="computeroutput"><span class="identifier">size</span><span class="special">()</span></code>.
Note that C++11 <code class="computeroutput"><span class="identifier">forward_list</span></code>
has no <code class="computeroutput"><span class="identifier">size</span><span class="special">()</span></code>.
</li>
</ul></div>
</li>
</ul></div>
<div class="section">
<div class="titlepage"><div><div><h3 class="title">
<a name="container.intro.introduction_building_container"></a><a class="link" href="container.html#container.intro.introduction_building_container" title="Building Boost.Container">Building
Boost.Container</a>
</h3></div></div></div>
<p>
There is no need to compile <span class="bold"><strong>Boost.Container</strong></span>,
since it's a header only library. Just include your Boost header directory
in your compiler include path.
</p>
</div>
<div class="section">
<div class="titlepage"><div><div><h3 class="title">
<a name="container.intro.tested_compilers"></a><a class="link" href="container.html#container.intro.tested_compilers" title="Tested compilers">Tested compilers</a>
</h3></div></div></div>
<p>
<span class="bold"><strong>Boost.Container</strong></span> requires a decent C++98
compatibility. Some compilers known to work are:
</p>
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
<li class="listitem">
Visual C++ >= 7.1.
</li>
<li class="listitem">
GCC >= 4.1.
</li>
<li class="listitem">
Intel C++ >= 9.0
</li>
</ul></div>
</div>
</div>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"><p><small>Last revised: February 20, 2012 at 20:49:22 GMT</small></p></td>
<td align="right"><div class="copyright-footer"></div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="SignedInteger.html"><img src="../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="libraries.html"><img src="../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="container/move_emplace.html"><img src="../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
|