Lines Matching refs:MoveOnly
12 struct MoveOnly { struct
14 MoveOnly(MoveOnly const&) = delete; argument
15 MoveOnly& operator=(MoveOnly const&) = delete;
16 MoveOnly(int data = 1) : data_(data) { } in MoveOnly() function
17 MoveOnly(MoveOnly&& x) : data_(x.data_) { x.data_ = 0; } in MoveOnly() argument
19 MoveOnly& operator=(MoveOnly&& x) in operator =() argument
23 bool operator==(const MoveOnly& x) const { return data_ == x.data_; } in operator ==() argument
24 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()
42 using T = hana::tuple<MoveOnly, MoveOnly>; in main()
43 T t0(MoveOnly(0), MoveOnly(1)); in main()
50 using T = hana::tuple<MoveOnly, MoveOnly, MoveOnly>; in main()
51 T t0(MoveOnly(0), MoveOnly(1), MoveOnly(2)); in main()