Lines Matching refs:MoveOnly
13 struct MoveOnly { struct
15 MoveOnly(MoveOnly const&) = delete; argument
16 MoveOnly& operator=(MoveOnly const&) = delete;
17 MoveOnly(int data = 1) : data_(data) { } in MoveOnly() function
18 MoveOnly(MoveOnly&& x) : data_(x.data_) { x.data_ = 0; } in MoveOnly() function
20 MoveOnly& operator=(MoveOnly&& x) in operator =() argument
24 bool operator==(const MoveOnly& x) const { return data_ == x.data_; } in operator ==() argument
25 bool operator< (const MoveOnly& x) const { return data_ < x.data_; } in operator <() argument
35 using T = hana::tuple<MoveOnly>; in main()
36 T t0(MoveOnly(0)); in main()
41 using T = hana::tuple<MoveOnly, MoveOnly>; in main()
42 T t0(MoveOnly(0), MoveOnly(1)); in main()
48 using T = hana::tuple<MoveOnly, MoveOnly, MoveOnly>; in main()
49 T t0(MoveOnly(0), MoveOnly(1), MoveOnly(2)); in main()
58 hana::tuple<MoveOnly>, MoveOnly const& in main()
62 hana::tuple<MoveOnly>, MoveOnly& in main()
66 hana::tuple<MoveOnly>, MoveOnly in main()
70 hana::tuple<MoveOnly>, MoveOnly&& in main()