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.
我想将双端队列的一部分放入其他双端队列中,并在不进行太多处理的情况下从原始队列中删除该部分,这样我就可以在多线程编程的情况下对子部分双端队列进行操作
如果你有你想要的部分的迭代器deque,你可以deque用它来实例化另一个。
deque
您还可以使用std::deque::erase成语从原始deque.
std::deque::erase