简体   繁体   中英

How to remove and copy part of deque in c++

我想将双端队列的一部分转换为其他双端队列,并在不做过多处理的情况下将其从原始对象中删除,以便在多线程编程的情况下可以对子双端队列进行操作

If you have the iterators for the section of the deque you want, You can instanciate another deque with that.

You can also use the std::deque::erase idiom to remove those elements from the original deque .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM