I am doing a search in a std::list and I am using find from the algorithm header, I saw the reference and it says that it returns last if it doesn't find any value that is equal to mine.
I wonder if I should test after this if the last value is actually equal to my value.
Am I thinking correctly or is there a more elegant solution?