Home
last modified time | relevance | path

Searched refs:bm_type (Results 1 – 25 of 34) sorted by relevance

12

/third_party/boost/libs/bimap/test/
Dtest_bimap_unordered.cpp68 > bm_type; in test_bimap() typedef
70 std::set< bm_type::value_type > data; in test_bimap()
71 data.insert( bm_type::value_type('a',"a") ); in test_bimap()
72 data.insert( bm_type::value_type('b',"b") ); in test_bimap()
73 data.insert( bm_type::value_type('c',"c") ); in test_bimap()
74 data.insert( bm_type::value_type('d',"d") ); in test_bimap()
76 bm_type bm; in test_bimap()
91 > bm_type; in test_bimap() typedef
93 std::set< bm_type::value_type > data; in test_bimap()
94 data.insert( bm_type::value_type('a',"a") ); in test_bimap()
[all …]
Dtest_bimap_sequenced.cpp118 > bm_type; in test_bimap() typedef
120 std::set< bm_type::value_type > data; in test_bimap()
121 data.insert( bm_type::value_type("1",1) ); in test_bimap()
122 data.insert( bm_type::value_type("2",2) ); in test_bimap()
123 data.insert( bm_type::value_type("3",3) ); in test_bimap()
124 data.insert( bm_type::value_type("4",4) ); in test_bimap()
126 bm_type b; in test_bimap()
128 test_bimap_init_copy_swap<bm_type>(data) ; in test_bimap()
136 bm_type c; in test_bimap()
143 c.remove_if(_key<=bm_type::value_type("1",1)); in test_bimap()
[all …]
Dtest_bimap_ordered.cpp63 typedef bimap< int, double > bm_type; in test_bimap() typedef
65 std::set< bm_type::value_type > data; in test_bimap()
66 data.insert( bm_type::value_type(1,0.1) ); in test_bimap()
67 data.insert( bm_type::value_type(2,0.2) ); in test_bimap()
68 data.insert( bm_type::value_type(3,0.3) ); in test_bimap()
69 data.insert( bm_type::value_type(4,0.4) ); in test_bimap()
71 bm_type bm; in test_bimap()
85 > bm_type; in test_bimap() typedef
87 std::set< bm_type::value_type > data; in test_bimap()
88 data.insert( bm_type::value_type(1,0.1) ); in test_bimap()
[all …]
Dtest_bimap_info.cpp34 typedef bimap< double, unordered_set_of<int>, with_info<std::string> > bm_type; in test_bimap_info() typedef
36 bm_type bm; in test_bimap_info()
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()
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()
82 with_info<tagged<int,info> > > bm_type; in test_tagged_bimap_info() typedef
[all …]
Dtest_bimap_mutable.cpp33 typedef BimapType bm_type; in test_bimap_mutable() typedef
35 bm_type bm; in test_bimap_mutable()
36 bm.insert( BOOST_DEDUCED_TYPENAME bm_type::value_type(1,0.1) ); in test_bimap_mutable()
38 const bm_type & cbm = bm; in test_bimap_mutable()
43 BOOST_DEDUCED_TYPENAME bm_type::left_iterator iter = bm.left.begin(); in test_bimap_mutable()
47 BOOST_DEDUCED_TYPENAME bm_type::left_const_iterator citer = bm.left.begin(); in test_bimap_mutable()
50 BOOST_DEDUCED_TYPENAME bm_type::left_const_iterator cciter = cbm.left.begin(); in test_bimap_mutable()
58 BOOST_DEDUCED_TYPENAME bm_type::iterator iter = bm.begin(); in test_bimap_mutable()
62 BOOST_DEDUCED_TYPENAME bm_type::const_iterator citer = bm.begin(); in test_bimap_mutable()
65 BOOST_DEDUCED_TYPENAME bm_type::const_iterator cciter = cbm.begin(); in test_bimap_mutable()
[all …]
Dtest_bimap_assign.cpp44 typedef bimap< list_of<int>, double > bm_type; in test_bimap_assign() typedef
45 bm_type bm = ba::list_of< bm_type::relation >(1,0.1)(2,0.2)(3,0.3); in test_bimap_assign()
54 list_of_relation > bm_type; in test_bimap_assign() typedef
55 bm_type bm = ba::list_of< bm_type::relation >(1,0.1)(2,0.2)(3,0.3); in test_bimap_assign()
63 typedef bimap< int, vector_of<double>, right_based > bm_type; in test_bimap_assign() typedef
64 bm_type bm = ba::list_of< bm_type::relation >(1,0.1)(2,0.2)(3,0.3); in test_bimap_assign()
72 typedef bimap< int, vector_of<double>, set_of_relation<> > bm_type; in test_bimap_assign() typedef
73 bm_type bm = ba::list_of< bm_type::relation >(1,0.1)(2,0.2)(3,0.3); in test_bimap_assign()
Dtest_bimap_range.cpp62 typedef bimap< double, multiset_of<int> > bm_type; in test_bimap_range() typedef
65 bm_type bm; in test_bimap_range()
66 bm.insert( bm_type::value_type(1.1 , 1) ); in test_bimap_range()
67 bm.insert( bm_type::value_type(2.2 , 2) ); in test_bimap_range()
68 bm.insert( bm_type::value_type(3.3 , 3) ); in test_bimap_range()
69 bm.insert( bm_type::value_type(4.4 , 4) ); in test_bimap_range()
82 bm_type::left_range_type r = bm.left.range( 2.0 < _key, _key < 4.0 ); in test_bimap_range()
92 bm_type::right_range_type r = bm.right.range( 2 <= _key, _key <= 3 ); in test_bimap_range()
102 bm_type:: left_const_range_type lr = bm. left.range( unbounded, _key < 4.0 ); in test_bimap_range()
103 bm_type::right_const_range_type rr = bm.right.range( 2 < _key , unbounded ); in test_bimap_range()
[all …]
Dtest_bimap_extra.cpp40 typedef bimap<int, unconstrained_set_of<double> > bm_type; typedef
46 data_type_by< member_at::left , bm_type >::type,
47 key_type_by < member_at::right, bm_type >::type
54 data_type_by< member_at::right, bm_type >::type,
55 key_type_by < member_at::left , bm_type >::type
62 map_type_by < member_at::left , bm_type >::type::value_type,
63 value_type_by< member_at::left , bm_type >::type
70 pair_type_by< member_at::left, bm_type::relation>::type,
71 value_type_by< member_at::left , bm_type >::type
Dtest_bimap_project.cpp40 > bm_type; in test_bimap_project() typedef
42 bm_type bm; in test_bimap_project()
44 bm.insert( bm_type::value_type(1,"1") ); in test_bimap_project()
45 bm.insert( bm_type::value_type(2,"2") ); in test_bimap_project()
47 bm_type:: iterator iter = bm.begin(); in test_bimap_project()
48 bm_type:: left_iterator left_iter = bm.left.find(1); in test_bimap_project()
49 bm_type::right_iterator right_iter = bm.right.begin(); in test_bimap_project()
51 const bm_type & cbm = bm; in test_bimap_project()
53 bm_type:: const_iterator citer = cbm.begin(); in test_bimap_project()
54 bm_type:: left_const_iterator left_citer = cbm.left.find(1); in test_bimap_project()
[all …]
/third_party/boost/libs/bimap/example/bimap_and_boost/
Dforeach.cpp39 typedef bimap< std::string, list_of<int> > bm_type; in main() typedef
41 bm_type bm; in main()
42 bm.insert( bm_type::value_type("1", 1) ); in main()
43 bm.insert( bm_type::value_type("2", 2) ); in main()
44 bm.insert( bm_type::value_type("3", 4) ); in main()
45 bm.insert( bm_type::value_type("4", 2) ); in main()
47 BOOST_FOREACH( bm_type::left_reference p, bm.left ) in main()
53 BOOST_FOREACH( bm_type::right_const_reference p, bm.right ) in main()
62 BOOST_FOREACH( bm_type::right_reference p, bm.right ) in main()
67 BOOST_FOREACH( bm_type::left_const_reference p, bm.left ) in main()
[all …]
Dserialization.cpp38 typedef bimap< std::string, int > bm_type; in main() typedef
42 bm_type bm; in main()
43 bm.insert( bm_type::value_type("one",1) ); in main()
44 bm.insert( bm_type::value_type("two",2) ); in main()
49 oa << const_cast<const bm_type&>(bm); /*< in main()
57 const bm_type::left_iterator left_iter = bm.left.find("two"); in main()
60 const bm_type::right_iterator right_iter = bm.right.find(1); in main()
66 bm_type bm; in main()
75 bm_type::left_iterator left_iter; in main()
80 bm_type::right_iterator right_iter; in main()
Dtypeof.cpp38 typedef bimap< tagged<std::string,name>, tagged<int,number> > bm_type; in using_auto() typedef
39 bm_type bm; in using_auto()
40 bm.insert( bm_type::value_type("one" ,1) ); in using_auto()
41 bm.insert( bm_type::value_type("two" ,2) ); in using_auto()
58 typedef bimap< tagged<std::string,name>, tagged<int,number> > bm_type; in not_using_auto() typedef
59 bm_type bm; in not_using_auto()
60 bm.insert( bm_type::value_type("one" ,1) ); in not_using_auto()
61 bm.insert( bm_type::value_type("two" ,2) ); in not_using_auto()
65 for( bm_type::map_by<name>::iterator iter = bm.by<name>().begin(); in not_using_auto()
71 bm_type::map_by<number>::iterator iter = bm.by<number>().find(2); in not_using_auto()
Drange.cpp95 typedef bimap< double, multiset_of<int> > bm_type; in main() typedef
97 bm_type bm; in main()
98 bm.insert( bm_type::value_type(2.5 , 1) ); in main()
99 bm.insert( bm_type::value_type(3.1 , 2) ); in main()
101 bm.insert( bm_type::value_type(6.4 , 4) ); in main()
102 bm.insert( bm_type::value_type(1.7 , 2) ); in main()
Dlambda.cpp34 typedef bimap< std::string, int > bm_type; in main() typedef
36 bm_type bm; in main()
37 bm.insert( bm_type::value_type("one",1) ); in main()
38 bm.insert( bm_type::value_type("two",2) ); in main()
/third_party/boost/libs/bimap/example/
Dtutorial_modify_and_replace.cpp35 typedef bimap< int, std::string > bm_type; in test_replace() typedef
36 bm_type bm; in test_replace()
38 bm.insert( bm_type::value_type(1,"one") ); in test_replace()
42 bm_type::right_iterator it = bm.right.find("one"); in test_replace()
49 bm.insert( bm_type::value_type(2,"two") ); in test_replace()
55 bm_type::left_iterator it = bm.left.find(1); in test_replace()
70 typedef bimap< int, std::string > bm_type; in test_modify() typedef
71 bm_type bm; in test_modify()
72 bm.insert( bm_type::value_type(1,"one") ); in test_modify()
76 bm_type::right_iterator it = bm.right.find("one"); in test_modify()
[all …]
Dstep_by_step.cpp33 typedef boost::bimap< int, std::string > bm_type; in main() typedef
34 bm_type bm; in main()
39 bm.insert( bm_type::value_type(1, "one" ) ); in main()
40 bm.insert( bm_type::value_type(2, "two" ) ); in main()
44 for( bm_type::const_iterator iter = bm.begin(), iend = bm.end(); in main()
58 typedef bm_type::left_map::const_iterator left_const_iterator; in main()
71 bm_type::left_const_iterator left_iter = bm.left.find(2); in main()
76 bm.left.insert( bm_type::left_value_type( 3, "three" ) ); in main()
83 bm_type::right_const_iterator right_iter = bm.right.find("two"); in main()
96 bm.right.insert( bm_type::right_value_type( "four", 4 ) ); in main()
Dtutorial_info_hook.cpp43 > bm_type; in tutorial_about_info_hook() typedef
44 typedef bm_type::value_type book; in tutorial_about_info_hook()
46 bm_type bm; in tutorial_about_info_hook()
61 bm_type::left_iterator i = bm.left.find("Bjarne Stroustrup"); in tutorial_about_info_hook()
99 > bm_type; in tutorial_about_tagged_info_hook() typedef
100 typedef bm_type::value_type book; in tutorial_about_tagged_info_hook()
102 bm_type bm; in tutorial_about_tagged_info_hook()
116 bm_type::map_by<author>::iterator i = bm.by<author>().find("Bjarne Stroustrup"); in tutorial_about_tagged_info_hook()
139 > bm_type; in bimap_without_an_info_hook() typedef
140 typedef bm_type::value_type book; in bimap_without_an_info_hook()
[all …]
Dtutorial_range.cpp35 typedef bimap<int,std::string> bm_type; in using_upper_and_lower_bound() typedef
36 bm_type bm; in using_upper_and_lower_bound()
40 bm_type::left_iterator iter_first = bm.left.lower_bound(20); in using_upper_and_lower_bound()
41 bm_type::left_iterator iter_second = bm.left.upper_bound(50); in using_upper_and_lower_bound()
50 bm_type::left_iterator iter_first = bm.left.upper_bound(20); in using_upper_and_lower_bound()
51 bm_type::left_iterator iter_second = bm.left.lower_bound(50); in using_upper_and_lower_bound()
62 typedef bimap<int,std::string> bm_type; in using_range() typedef
63 bm_type bm; in using_range()
70 bm_type::left_range_type r; in using_range()
Dprojection.cpp34 typedef bimap<std::string,multiset_of<int,std::greater<int> > > bm_type; in years_example() typedef
36 bm_type bm; in years_example()
37 bm.insert( bm_type::value_type("John" ,34) ); in years_example()
38 bm.insert( bm_type::value_type("Peter",24) ); in years_example()
39 bm.insert( bm_type::value_type("Mary" ,12) ); in years_example()
43 bm_type::left_const_iterator name_iter = bm.left.find("Peter"); in years_example()
45 bm_type::right_const_iterator years_iter = bm.project_right(name_iter); in years_example()
Dat_function_examples.cpp38 typedef bimap< set_of< std::string >, list_of< int > > bm_type; in first_bimap() typedef
39 bm_type bm; in first_bimap()
59 typedef bimap< multiset_of<std::string>, unordered_set_of<int> > bm_type; in second_bimap() typedef
60 bm_type bm; in second_bimap()
70 bm.right.insert( bm_type::right_value_type(1,"one") ); in second_bimap()
/third_party/boost/libs/bimap/test/compile_fail/
Dtest_bimap_mutable_1.cpp29 typedef bimap< int, list_of<int> > bm_type; in test_bimap_mutable_1() typedef
30 bm_type bm; in test_bimap_mutable_1()
31 bm.insert( bm_type::value_type(1,1) ); in test_bimap_mutable_1()
35 const bm_type & cbm = bm; in test_bimap_mutable_1()
Dtest_bimap_info_1.cpp29 typedef bimap< int, list_of<int>, with_info<int> > bm_type; in test_bimap_info_1() typedef
30 bm_type bm; in test_bimap_info_1()
31 bm.insert( bm_type::value_type(1,1) ); in test_bimap_info_1()
35 const bm_type & cbm = bm; in test_bimap_info_1()
Dtest_bimap_mutable_2.cpp29 typedef bimap< int, list_of<int> > bm_type; in test_bimap_mutable_2() typedef
30 bm_type bm; in test_bimap_mutable_2()
31 bm.insert( bm_type::value_type(1,1) ); in test_bimap_mutable_2()
35 const bm_type & cbm = bm; in test_bimap_mutable_2()
Dtest_bimap_info_3.cpp29 typedef bimap< int, list_of<int> > bm_type; in test_bimap_info_3() typedef
30 bm_type bm; in test_bimap_info_3()
31 bm.insert( bm_type::value_type(1,1) ); in test_bimap_info_3()
Dtest_bimap_info_2.cpp29 typedef bimap< int, list_of<int> > bm_type; in test_bimap_info_2() typedef
30 bm_type bm; in test_bimap_info_2()
31 bm.insert( bm_type::value_type(1,1) ); in test_bimap_info_2()

12