Searched refs:move_only (Results 1 – 4 of 4) sorted by relevance
20 struct move_only { struct21 move_only() {} in move_only() function22 move_only(move_only&&) = default;23 move_only& operator=(move_only&&) = default;26 move_only source() {return move_only();} in source()27 const move_only csource() {return move_only();} in csource()29 void test(move_only) {} in test() argument33 const move_only ca = move_only(); in main()
17 class move_only class19 move_only(const move_only&);20 move_only& operator=(const move_only&);22 move_only(move_only&&) {} in move_only() function in move_only23 move_only& operator=(move_only&&) {return *this;} in operator =() argument25 move_only() {} in move_only() function in move_only28 move_only source() {return move_only();} in source()29 const move_only csource() {return move_only();} in csource()31 void test(move_only) {} in test() argument96 move_only mo; in main()
45 class move_only class47 move_only(const move_only&) = delete;48 move_only& operator=(const move_only&)= delete;51 move_only(move_only&&) {++move_only_constructed;} in move_only() function in move_only52 move_only& operator=(move_only&&) {return *this;} in operator =() argument54 move_only() {++move_only_constructed;} in move_only() function in move_only55 ~move_only() {--move_only_constructed;} in ~move_only()117 std::allocator<move_only> a; in main()122 move_only* ap = a.allocate(3); in main()136 a.construct(ap, move_only()); in main()
7 class move_only { move_only(const move_only&) = delete; move_only(move_only&&); }; class9 move_only il;