#include <iostream>
#include <queue>
#include <algorithm>
#include <vector>
using namespace std;

class C {
public:
    C() {cout<<"CTOR\n";}
    ~C() {cout<<"DTOR\n";}
    C(const C& c) { cout<<"COPY CTOR\n";};
    C(const C&& c) { cout<<"MOVE CTOR\n";};

};

int main() {

    {
        vector<C> c;
        C cobj;
        //cout<<"pushing normally:\n";
        //c.push(cobj);
        cout<<"pushing with move\n";
        c.push_back(move(cobj)); // same output as line above
        cout<<"popping\n";
       // c.pop();
        //c.pop();
        cout<<"end of scope\n";
    }
	//cin.get();
}