Which STL Algorithm should i use if I want to find something but Don't want it to return last if not found?
<p>which STL Algorithm should i use if I want to find something but Don't want it to return last if not found?</p>

<p>My use case is I need to find or return null in the vector of user-defined types.</p>

<p>Find and Find_If seem to return the last item if not found. I need to do "someting else" if the element is not found.</p>

<p>Thanks</p>
