Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class C {
- std::vector<int> _member;
- ...
- public:
- ...
- C(int ...) {...}
- ...
- ~C() {
- for (std::vector<int>::iterator it = _member.begin(); it != _member.end(); ++it) {
- cout << *it << ' ';
- }
- cout << endl;
- }
- ...
- };
- // Ну а теперь надо каким-то способом сделать move
- void f(C);
- f(C(2));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement