Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Examples

Examples list
Simple Bimap
Mighty Bimap
MultiIndex to Bimap Path - Bidirectional Map
MultiIndex to Bimap Path - Hashed indices

In the folder libs/bimap/example you can find all the examples used in bimap documentation. Here is a list of them:

Table 1.7. Tutorial examples

Program

Description

simple_bimap.cpp

Soccer world cup example

tagged_simple_bimap.cpp

Soccer world cup example using user defined names

step_by_step.cpp

Basic example of the three views of bimap

population_bimap.cpp

Countries populations, using unordered_set_of and multiset_of

repetitions_counter.cpp

Word repetitions counter, using unordered_set_of and list_of

mighty_bimap.cpp

Dictionary using list_of_relation

user_defined_names.cpp

Equivalence between code with tagged and untagged code

standard_map_comparison.cpp

Comparison between standard maps and bimap map views

at_function_examples.cpp

Functions at(key) and operator[](key) examples

tutorial_modify_and_replace.cpp

modify and replace examples

tutorial_range.cpp

range() tutorial

tutorial_info_hook.cpp

Additional information hooking

unconstrained_collection.cpp

Using unconstrained_set_of collection type


Table 1.8. Bimap and Boost examples

Program

Description

assign.cpp

Bimap and Boost.Assign: Methods to insert elements

lambda.cpp

Bimap and Boost.Lambda: new lambda placeholders

property_map.cpp

Bimap and Boost.PropertyMap: PropertyMap support

range.cpp

Bimap and Boost.Range: Using bimaps in the new range framework

foreach.cpp

Bimap and Boost.Foreach: Iterating over bimaps

typeof.cpp

Bimap and Boost.Typeof: using BOOST_AUTO while we wait for C++0x

xpressive.cpp

Bimap and Boost.Xpressive: Inserting elements in a bimap

serialization.cpp:

Bimap and Boost.Serialization: Load and save bimaps and iterators


Table 1.9. Boost.MultiIndex to Boost.Bimap path examples

Program

Description

bidirectional_map.cpp

Boost.MultiIndex to Boost.Bimap path example

hashed_indices.cpp

Boost.MultiIndex to Boost.Bimap path example

tagged_bidirectional_map.cpp

Boost.MultiIndex to Boost.Bimap path example



PrevUpHomeNext