Vector.erase(Iterator) causes bad memory access

前端 未结 4 624
借酒劲吻你
借酒劲吻你 2020-12-03 19:49

I am trying to do a Z-Index reordering of videoObjects stored in a vector. The plan is to identify the videoObject which is going to b

4条回答
  •  抹茶落季
    2020-12-03 20:05

    erase function returns the next valid iterator.

    You would have to make a while loop and do something like

    iterator = erase(...)
    

    with corresponding checks.

提交回复
热议问题