Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何从标准向量前面读取并删除读取变量?
是吗:
v.front(); v.erase(v.begin());
看起来不错,但考虑切换到具有 pop_front 函数的 std::deque (不必移动容器中的所有元素)