Lines Matching refs:MoveOnly
18 struct MoveOnly { struct
20 MoveOnly(MoveOnly const&) = delete; argument
21 MoveOnly& operator=(MoveOnly const&) = delete;
22 MoveOnly(int data = 1) : data_(data) { } in MoveOnly() function
23 MoveOnly(MoveOnly&& x) : data_(x.data_) { x.data_ = 0; } in MoveOnly() argument
25 MoveOnly& operator=(MoveOnly&& x) in operator =() argument
29 bool operator==(const MoveOnly& x) const { return data_ == x.data_; } in operator ==() argument
30 bool operator< (const MoveOnly& x) const { return data_ < x.data_; } in operator <() argument
41 using Map = hana::map<hana::pair<test::ct_eq<0>, MoveOnly>>; in main()
42 Map map0 = hana::make_map(hana::make_pair(test::ct_eq<0>{}, MoveOnly{999})); in main()
43 Map map = hana::make_map(hana::make_pair(test::ct_eq<0>{}, MoveOnly{4})); in main()
45 BOOST_HANA_RUNTIME_CHECK(hana::at_key(map0, test::ct_eq<0>{}) == MoveOnly{4}); in main()
48 using Map = hana::map<hana::pair<test::ct_eq<0>, MoveOnly>, in main()
49 hana::pair<test::ct_eq<1>, MoveOnly>>; in main()
50 Map map0 = hana::make_map(hana::make_pair(test::ct_eq<0>{}, MoveOnly{999}), in main()
51 hana::make_pair(test::ct_eq<1>{}, MoveOnly{888})); in main()
52 Map map = hana::make_map(hana::make_pair(test::ct_eq<0>{}, MoveOnly{4}), in main()
53 hana::make_pair(test::ct_eq<1>{}, MoveOnly{5})); in main()
55 BOOST_HANA_RUNTIME_CHECK(hana::at_key(map0, test::ct_eq<0>{}) == MoveOnly{4}); in main()
56 BOOST_HANA_RUNTIME_CHECK(hana::at_key(map0, test::ct_eq<1>{}) == MoveOnly{5}); in main()
59 using Map = hana::map<hana::pair<test::ct_eq<0>, MoveOnly>, in main()
60 hana::pair<test::ct_eq<1>, MoveOnly>, in main()
61 hana::pair<test::ct_eq<2>, MoveOnly>>; in main()
62 Map map0 = hana::make_map(hana::make_pair(test::ct_eq<0>{}, MoveOnly{999}), in main()
63 hana::make_pair(test::ct_eq<1>{}, MoveOnly{888}), in main()
64 hana::make_pair(test::ct_eq<2>{}, MoveOnly{777})); in main()
65 Map map = hana::make_map(hana::make_pair(test::ct_eq<0>{}, MoveOnly{4}), in main()
66 hana::make_pair(test::ct_eq<1>{}, MoveOnly{5}), in main()
67 hana::make_pair(test::ct_eq<2>{}, MoveOnly{6})); in main()
69 BOOST_HANA_RUNTIME_CHECK(hana::at_key(map0, test::ct_eq<0>{}) == MoveOnly{4}); in main()
70 BOOST_HANA_RUNTIME_CHECK(hana::at_key(map0, test::ct_eq<1>{}) == MoveOnly{5}); in main()
71 BOOST_HANA_RUNTIME_CHECK(hana::at_key(map0, test::ct_eq<2>{}) == MoveOnly{6}); in main()
74 using Map = hana::map<hana::pair<test::ct_eq<0>, MoveOnly>, in main()
75 hana::pair<test::ct_eq<1>, MoveOnly>, in main()
76 hana::pair<test::ct_eq<2>, MoveOnly>, in main()
78 Map map0 = hana::make_map(hana::make_pair(test::ct_eq<0>{}, MoveOnly{999}), in main()
79 hana::make_pair(test::ct_eq<1>{}, MoveOnly{888}), in main()
80 hana::make_pair(test::ct_eq<2>{}, MoveOnly{777}), in main()
82 Map map = hana::make_map(hana::make_pair(test::ct_eq<0>{}, MoveOnly{4}), in main()
83 hana::make_pair(test::ct_eq<1>{}, MoveOnly{5}), in main()
84 hana::make_pair(test::ct_eq<2>{}, MoveOnly{6}), in main()
87 BOOST_HANA_RUNTIME_CHECK(hana::at_key(map0, test::ct_eq<0>{}) == MoveOnly{4}); in main()
88 BOOST_HANA_RUNTIME_CHECK(hana::at_key(map0, test::ct_eq<1>{}) == MoveOnly{5}); in main()
89 BOOST_HANA_RUNTIME_CHECK(hana::at_key(map0, test::ct_eq<2>{}) == MoveOnly{6}); in main()