Say I'm given a std::list or std::vector. After taking some user inputs the vector is {1,3,5,6,5,3,4,5}. I want to return ALL the occurrences of 5 in the list. Note that all the elements are integers. The answer should be 2,4,7, as those are the indexes(using 0 indexing). Is there any function to do this?