3 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4 <title>Examples</title>
5 <link rel="stylesheet" href="../boostbook.css" type="text/css">
6 <meta name="generator" content="DocBook XSL Stylesheets V1.77.1">
7 <link rel="home" href="../index.html" title="Chapter 1. Boost.Bimap">
8 <link rel="up" href="../index.html" title="Chapter 1. Boost.Bimap">
9 <link rel="prev" href="performance.html" title="Performance">
10 <link rel="next" href="examples/simple_bimap.html" title="Simple Bimap">
12 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13 <table cellpadding="2" width="100%"><tr>
14 <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../boost.png"></td>
15 <td align="center"><a href="../../../../../index.html">Home</a></td>
16 <td align="center"><a href="../../../../../libs/libraries.htm">Libraries</a></td>
17 <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
18 <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
19 <td align="center"><a href="../../../../../more/index.htm">More</a></td>
22 <div class="spirit-nav">
23 <a accesskey="p" href="performance.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.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="examples/simple_bimap.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
25 <div class="section boost_bimap_examples">
26 <div class="titlepage"><div><div><h2 class="title" style="clear: both">
27 <a name="boost_bimap.examples"></a><a class="link" href="examples.html" title="Examples">Examples</a>
28 </h2></div></div></div>
30 <dt><span class="section"><a href="examples.html#boost_bimap.examples.examples_list">Examples list</a></span></dt>
31 <dt><span class="section"><a href="examples/simple_bimap.html">Simple Bimap</a></span></dt>
32 <dt><span class="section"><a href="examples/mighty_bimap.html">Mighty Bimap</a></span></dt>
33 <dt><span class="section"><a href="examples/multiindex_to_bimap_path___bidirectional_map.html">MultiIndex
34 to Bimap Path - Bidirectional Map</a></span></dt>
35 <dt><span class="section"><a href="examples/multiindex_to_bimap_path___hashed_indices.html">MultiIndex
36 to Bimap Path - Hashed indices</a></span></dt>
38 <div class="section boost_bimap_examples_examples_list">
39 <div class="titlepage"><div><div><h3 class="title">
40 <a name="boost_bimap.examples.examples_list"></a><a class="link" href="examples.html#boost_bimap.examples.examples_list" title="Examples list">Examples list</a>
41 </h3></div></div></div>
43 In the folder <a href="../../../example" target="_top">libs/bimap/example</a> you can
44 find all the examples used in bimap documentation. Here is a list of them:
47 <a name="boost_bimap.examples.examples_list.t0"></a><p class="title"><b>Table 1.7. Tutorial examples</b></p>
48 <div class="table-contents"><table class="table" summary="Tutorial examples">
69 <a href="../../../example/simple_bimap.cpp" target="_top">simple_bimap.cpp </a>
74 Soccer world cup example
81 <a href="../../../example/tagged_simple_bimap.cpp" target="_top">tagged_simple_bimap.cpp
87 Soccer world cup example using user defined names
94 <a href="../../../example/step_by_step.cpp" target="_top">step_by_step.cpp </a>
99 Basic example of the three views of bimap
106 <a href="../../../example/population_bimap.cpp" target="_top">population_bimap.cpp
112 Countries populations, using <code class="computeroutput"><span class="identifier">unordered_set_of</span></code>
113 and <code class="computeroutput"><span class="identifier">multiset_of</span></code>
120 <a href="../../../example/repetitions_counter.cpp" target="_top">repetitions_counter.cpp
126 Word repetitions counter, using <code class="computeroutput"><span class="identifier">unordered_set_of</span></code>
127 and <code class="computeroutput"><span class="identifier">list_of</span></code>
134 <a href="../../../example/mighty_bimap.cpp" target="_top">mighty_bimap.cpp </a>
139 Dictionary using <code class="computeroutput"><span class="identifier">list_of_relation</span></code>
146 <a href="../../../example/user_defined_names.cpp" target="_top">user_defined_names.cpp
152 Equivalence between code with tagged and untagged code
159 <a href="../../../example/standard_map_comparison.cpp" target="_top">standard_map_comparison.cpp
165 Comparison between standard maps and bimap map views
172 <a href="../../../example/at_function_examples.cpp" target="_top">at_function_examples.cpp
178 Functions <code class="computeroutput"><span class="identifier">at</span><span class="special">(</span><span class="identifier">key</span><span class="special">)</span></code>
179 and <code class="computeroutput"><span class="keyword">operator</span><span class="special">[](</span><span class="identifier">key</span><span class="special">)</span></code>
187 <a href="../../../example/tutorial_modify_and_replace.cpp" target="_top">tutorial_modify_and_replace.cpp
193 <code class="computeroutput"><span class="identifier">modify</span></code> and <code class="computeroutput"><span class="identifier">replace</span></code> examples
200 <a href="../../../example/tutorial_range.cpp" target="_top">tutorial_range.cpp
206 <code class="computeroutput"><span class="identifier">range</span><span class="special">()</span></code>
214 <a href="../../../example/tutorial_info_hook.cpp" target="_top">tutorial_info_hook.cpp
220 Additional information hooking
227 <a href="../../../example/unconstrained_collection.cpp" target="_top">unconstrained_collection.cpp
233 Using <code class="computeroutput"><span class="identifier">unconstrained_set_of</span></code>
241 <br class="table-break"><div class="table">
242 <a name="boost_bimap.examples.examples_list.t1"></a><p class="title"><b>Table 1.8. Bimap and Boost examples</b></p>
243 <div class="table-contents"><table class="table" summary="Bimap and Boost examples">
264 <a href="../../../example/bimap_and_boost/assign.cpp" target="_top">assign.cpp
270 Bimap and Boost.Assign: Methods to insert elements
277 <a href="../../../example/bimap_and_boost/lambda.cpp" target="_top">lambda.cpp
283 Bimap and Boost.Lambda: new lambda placeholders
290 <a href="../../../example/bimap_and_boost/property_map.cpp" target="_top">property_map.cpp
296 Bimap and Boost.PropertyMap: PropertyMap support
303 <a href="../../../example/bimap_and_boost/range.cpp" target="_top">range.cpp
309 Bimap and Boost.Range: Using bimaps in the new range framework
316 <a href="../../../example/bimap_and_boost/foreach.cpp" target="_top">foreach.cpp
322 Bimap and Boost.Foreach: Iterating over bimaps
329 <a href="../../../example/bimap_and_boost/typeof.cpp" target="_top">typeof.cpp
335 Bimap and Boost.Typeof: using BOOST_AUTO while we wait for C++0x
342 <a href="../../../example/bimap_and_boost/xpressive.cpp" target="_top">xpressive.cpp
348 Bimap and Boost.Xpressive: Inserting elements in a bimap
355 <a href="../../../example/bimap_and_boost/serialization.cpp" target="_top">serialization.cpp:
361 Bimap and Boost.Serialization: Load and save bimaps and iterators
368 <br class="table-break"><div class="table">
369 <a name="boost_bimap.examples.examples_list.t2"></a><p class="title"><b>Table 1.9. Boost.MultiIndex to Boost.Bimap path examples</b></p>
370 <div class="table-contents"><table class="table" summary="Boost.MultiIndex to Boost.Bimap path examples">
391 <a href="../../../example/mi_to_b_path/bidirectional_map.cpp" target="_top">bidirectional_map.cpp
397 Boost.MultiIndex to Boost.Bimap path example
404 <a href="../../../example/mi_to_b_path/hashed_indices.cpp" target="_top">hashed_indices.cpp
410 Boost.MultiIndex to Boost.Bimap path example
417 <a href="../../../example/mi_to_b_path/tagged_bidirectional_map.cpp" target="_top">tagged_bidirectional_map.cpp
423 Boost.MultiIndex to Boost.Bimap path example
430 <br class="table-break">
433 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
434 <td align="left"></td>
435 <td align="right"><div class="copyright-footer">Copyright © 2006-2012 Matias Capeletto<p>
436 Distributed under the Boost Software License, Version 1.0. (See accompanying
437 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>)
442 <div class="spirit-nav">
443 <a accesskey="p" href="performance.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.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="examples/simple_bimap.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>