Lines Matching refs:MoveOnly
35 struct MoveOnly struct
38 explicit MoveOnly(int i) : value(i) {} in MoveOnly() argument
39 MoveOnly(MoveOnly && r) : value(r.value) { r.value = 0; } in MoveOnly() function
40 MoveOnly& operator=(MoveOnly && r) { value = r.value; r.value = 0; return *this; } in operator =() argument
43 MoveOnly(MoveOnly const&);
44 void operator=(MoveOnly const&);
47 MoveOnly makeMoveOnly(int i) in makeMoveOnly()
49 return MoveOnly(i); in makeMoveOnly()
52 optional<MoveOnly> makeOptMoveOnly(int i) in makeOptMoveOnly()
54 return optional<MoveOnly>(MoveOnly(i)); in makeOptMoveOnly()
57 int get_val(MoveOnly m) in get_val()
64 optional<MoveOnly> om (makeMoveOnly(7)), om2 (makeMoveOnly(8)); in test_map_move_only()
74 optional<MoveOnly> o_; in test_map_move_only()