title: Get all positions of elements in STL vector that are greater than a value
body: <p>I would like to know how can I find the index positions of elements that verify a certain condition (for example greater than). For example if I have a vector of int values</p>
  
  <pre><code>vector&lt;int&gt; V;
  </code></pre>
  
  <p>V contains the values <code>3 2 5 8 2 1 10 4 7</code></p>
  
  <p>and I want to get all the <strong>index positions</strong> of elements that are greater than 5.
  I know <code>std::find_if</code> but according to the documentation it just finds the first element that satisfies a condition.</p>