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
videoObjects
vector
videoObject
Beware, erasing elements one by one from a vector has quadratic complexity. STL to the rescue!
#include #include videoObjects.erase( std::remove_if( std::bind2nd( std::mem_fun_ref(&videoObject::isInside), ofPoint(tcur.getX(), tcur.getY()) ), ), videoObjects.end() );