title: Erase opencv rect objects from a vector
body: <p>I am using a vector of opencv Rect objects. What i want is to erase some of vectors elements inside a for-loop. However, it seems that I haven't access to vector's erase() fucntion. I am receiving the following message: </p>
  
  <blockquote>
    <p>/home/christosh/Desktop/recognition-build-desktop-Qt_4_8_1_in_PATH_<em>System</em>_Release/../faceRec/src/Detection.cpp:88: error: 'class cv::Rect_' has no member named 'erase'</p>
  </blockquote>
  
  <p>My code : </p>
  
  <pre><code>     vector&lt;Rect&gt; faces, eyes;
       for(int l=0; l&lt;eyes.size(); l++){
          if(eyes[l].y&gt; faces[i].height){
              eyes[l].erase;
          }
       }
  </code></pre>