max "index" in container

I know there is max_element() but i need a function to return the index of the element instead of the actual value... any help?
std::find(c.begin(), c.end(), value) where c is a container and value is... the value, hope that helps.
thanks! just what i was lookin for
Topic archived. No new replies allowed.