Lines Matching refs:bm
36 bm_type bm; in test_bimap_info() local
37 const bm_type & cbm = bm; in test_bimap_info()
40 bm .insert( bm_type:: value_type(1.1 , 1, "one" ) ); in test_bimap_info()
41 bm.left .insert( bm_type:: left_value_type(2.2 , 2, "two" ) ); in test_bimap_info()
42 bm.right.insert( bm_type::right_value_type( 3 , 3.3, "three" ) ); in test_bimap_info()
44 bm.begin()->info = "1"; in test_bimap_info()
45 BOOST_TEST( bm.right.find(1)->info == "1" ); in test_bimap_info()
47 bm.left.find(2.2)->info = "2"; in test_bimap_info()
48 BOOST_TEST( bm.right.find(2)->info == "2" ); in test_bimap_info()
50 bm.right.find(3)->info = "3"; in test_bimap_info()
51 BOOST_TEST( bm.right.find(3)->info == "3" ); in test_bimap_info()
54 bm .insert( bm_type:: value_type(4.4 , 4) ); in test_bimap_info()
55 bm. left.insert( bm_type:: left_value_type(5.5 , 5) ); in test_bimap_info()
56 bm.right.insert( bm_type::right_value_type( 6 , 6.6) ); in test_bimap_info()
58 BOOST_TEST( bm.right.find(4)->info == "" ); in test_bimap_info()
60 bm.left.info_at(4.4) = "4"; in test_bimap_info()
61 BOOST_TEST( bm.right.info_at(4) == "4" ); in test_bimap_info()
64 bm.right.info_at(5) = "5"; in test_bimap_info()
65 BOOST_TEST( bm.left.info_at(5.5) == "5" ); in test_bimap_info()
84 bm_type bm; in test_tagged_bimap_info() local
85 const bm_type & cbm = bm; in test_tagged_bimap_info()
87 bm .insert( bm_type:: value_type(1,1,1) ); in test_tagged_bimap_info()
88 bm.left .insert( bm_type:: left_value_type(2,2,2) ); in test_tagged_bimap_info()
89 bm.right.insert( bm_type::right_value_type(3,3,3) ); in test_tagged_bimap_info()
91 bm.begin()->get<info>() = 10; in test_tagged_bimap_info()
92 BOOST_TEST( bm.right.find(1)->get<info>() == 10 ); in test_tagged_bimap_info()
95 bm.left.find(2)->get<info>() = 20; in test_tagged_bimap_info()
96 BOOST_TEST( bm.right.find(2)->get<info>() == 20 ); in test_tagged_bimap_info()
99 bm.right.find(3)->get<info>() = 30; in test_tagged_bimap_info()
100 BOOST_TEST( bm.right.find(3)->get<info>() == 30 ); in test_tagged_bimap_info()
104 bm .insert( bm_type:: value_type(4,4) ); in test_tagged_bimap_info()
105 bm. left.insert( bm_type:: left_value_type(5,5) ); in test_tagged_bimap_info()
106 bm.right.insert( bm_type::right_value_type(6,6) ); in test_tagged_bimap_info()
108 bm.left.info_at(4) = 4; in test_tagged_bimap_info()
109 BOOST_TEST( bm.right.info_at(4) == 4 ); in test_tagged_bimap_info()
112 bm.right.info_at(5) = 5; in test_tagged_bimap_info()
113 BOOST_TEST( bm.left.info_at(5) == 5 ); in test_tagged_bimap_info()