Lines Matching refs:MoveOnly
218 class MoveOnly class
222 MoveOnly(int v) : val(v) {} in MoveOnly() function in MoveOnly
223 MoveOnly(MoveOnly&& rhs) : val(rhs.val) { rhs.val = 0; } in MoveOnly() function in MoveOnly
224 void operator=(MoveOnly&& rhs) {val = rhs.val; rhs.val = 0; } in operator =()
227 MoveOnly(MoveOnly const&);
228 void operator=(MoveOnly const&);
235 optional<MoveOnly> o1; in test_with_move_only()
236 optional<MoveOnly> o2((MoveOnly(1))); in test_with_move_only()
239 optional<MoveOnly> o3 (boost::move(o1)); in test_with_move_only()
241 optional<MoveOnly> o4 (boost::move(o2)); in test_with_move_only()
261 MoveOnlyB(MoveOnly&& rhs) : val(rhs.val) { rhs.val = 0; } in MoveOnlyB()
262 void operator=(MoveOnly&& rhs) {val = rhs.val; rhs.val = 0; } in operator =()
267 MoveOnlyB(MoveOnly const&);
268 void operator=(MoveOnly const&);
273 optional<MoveOnly> a((MoveOnly(2))); in test_move_assign_from_optional_U()
282 b1 = MoveOnly(4); in test_move_assign_from_optional_U()
290 optional<MoveOnly> a((MoveOnly(2))); in test_move_ctor_from_optional_U()
298 optional<MoveOnlyB> b2(( optional<MoveOnly>(( MoveOnly(4) )) )); in test_move_ctor_from_optional_U()
306 optional<MoveOnly> a((MoveOnly(2))); in test_swap()
307 optional<MoveOnly> b((MoveOnly(3))); in test_swap()
316 MoveOnly m(3); in test_optional_ref_to_movables()
317 optional<MoveOnly&> orm = m; in test_optional_ref_to_movables()
321 optional<MoveOnly&> orm2 = orm; in test_optional_ref_to_movables()
326 optional<MoveOnly&> orm3 = boost::move(orm); in test_optional_ref_to_movables()