10
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
vector<int> V;
V contains the values 3 2 5 8 2 1 10 4 7
and I want to get all the index positions of elements that are greater than 5.
I know std::find_if but according to the documentation it just finds the first element that satisfies a condition.