<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://programmingexamples.net/w/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://programmingexamples.net/w/index.php?action=history&amp;feed=atom&amp;title=CPP%2FBoost%2FBimap</id>
		<title>CPP/Boost/Bimap - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://programmingexamples.net/w/index.php?action=history&amp;feed=atom&amp;title=CPP%2FBoost%2FBimap"/>
		<link rel="alternate" type="text/html" href="http://programmingexamples.net/w/index.php?title=CPP/Boost/Bimap&amp;action=history"/>
		<updated>2026-04-27T14:56:23Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.5</generator>

	<entry>
		<id>http://programmingexamples.net/w/index.php?title=CPP/Boost/Bimap&amp;diff=4453&amp;oldid=prev</id>
		<title>Daviddoria: Created page with '==Bimap.cpp== &lt;source lang=&quot;cpp&quot;&gt; #include &lt;iostream&gt; #include &lt;map&gt; #include &lt;string&gt;  #include &lt;boost/bimap/bimap.hpp&gt; #include &lt;boost/bimap/set_of.hpp&gt;  int main() {   typedef…'</title>
		<link rel="alternate" type="text/html" href="http://programmingexamples.net/w/index.php?title=CPP/Boost/Bimap&amp;diff=4453&amp;oldid=prev"/>
				<updated>2011-03-11T00:53:43Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#039;==Bimap.cpp== &amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt; #include &amp;lt;iostream&amp;gt; #include &amp;lt;map&amp;gt; #include &amp;lt;string&amp;gt;  #include &amp;lt;boost/bimap/bimap.hpp&amp;gt; #include &amp;lt;boost/bimap/set_of.hpp&amp;gt;  int main() {   typedef…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Bimap.cpp==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
#include &amp;lt;iostream&amp;gt;&lt;br /&gt;
#include &amp;lt;map&amp;gt;&lt;br /&gt;
#include &amp;lt;string&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;boost/bimap/bimap.hpp&amp;gt;&lt;br /&gt;
#include &amp;lt;boost/bimap/set_of.hpp&amp;gt;&lt;br /&gt;
&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
  typedef boost::bimaps::bimap&amp;lt; boost::bimaps::set_of&amp;lt;std::string&amp;gt;, boost::bimaps::set_of&amp;lt;int&amp;gt; &amp;gt; bimap_type;&lt;br /&gt;
  bimap_type bm;&lt;br /&gt;
  typedef bimap_type::left_map LeftMapType;&lt;br /&gt;
  LeftMapType&amp;amp; leftMap = bm.left;&lt;br /&gt;
  typedef LeftMapType::value_type LeftValueType;&lt;br /&gt;
  typedef LeftMapType::const_iterator ConstLeftIterator;&lt;br /&gt;
&lt;br /&gt;
  leftMap.insert( LeftValueType(&amp;quot;one&amp;quot;,1) );&lt;br /&gt;
  ConstLeftIterator leftIterator = leftMap.find(&amp;quot;one&amp;quot;);&lt;br /&gt;
  std::cout &amp;lt;&amp;lt; leftIterator-&amp;gt;first &amp;lt;&amp;lt; &amp;quot; --&amp;gt; &amp;quot; &amp;lt;&amp;lt; leftIterator-&amp;gt;second &amp;lt;&amp;lt; std::endl;&lt;br /&gt;
&lt;br /&gt;
  /////////////////////&lt;br /&gt;
  typedef bimap_type::right_map RightMapType;&lt;br /&gt;
  RightMapType&amp;amp; rightMap = bm.right;&lt;br /&gt;
  typedef RightMapType::value_type RightValueType;&lt;br /&gt;
  typedef RightMapType::const_iterator ConstRightIterator;&lt;br /&gt;
&lt;br /&gt;
  rightMap.insert( RightValueType(2,&amp;quot;two&amp;quot;) );&lt;br /&gt;
  ConstRightIterator rightIterator = rightMap.find(2);&lt;br /&gt;
  std::cout &amp;lt;&amp;lt; rightIterator-&amp;gt;first &amp;lt;&amp;lt; &amp;quot; --&amp;gt; &amp;quot; &amp;lt;&amp;lt; rightIterator-&amp;gt;second &amp;lt;&amp;lt; std::endl;;&lt;br /&gt;
&lt;br /&gt;
  return 0;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==CMakeLists.txt==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cmake&amp;quot;&amp;gt;&lt;br /&gt;
cmake_minimum_required(VERSION 2.6)&lt;br /&gt;
&lt;br /&gt;
Project(Bimap)&lt;br /&gt;
&lt;br /&gt;
ADD_EXECUTABLE(Bimap Bimap.cpp)&lt;br /&gt;
TARGET_LINK_LIBRARIES(Bimap)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Daviddoria</name></author>	</entry>

	</feed>