Move list element to the end in STL

后端 未结 3 691
野性不改
野性不改 2020-12-06 08:58

I have already the list pointer of CDrawObject*

std::list elements;

How I can move some element to the end of list. I s

3条回答
  •  误落风尘
    2020-12-06 09:46

    A std::list is a doubly-linked list, which means you do not have random access to element n. You have to can remove the element, and then use push_back.

提交回复
热议问题