C++ queue中不可以存放vector<int>吗?

queue<vector<int>> q;
调用q.front()时为什么返回值是void呢

你是没插入数据吧,亲测可以