adjacent_difference and vector::push_back. Illustrates how to use the find Standard Template Library (STL) function in Visual C++. Copy. The find algorithm locates the first element in the range [First, Last) that matches Value and returns the iterator positioned at the first matching element, or Last if no such element exists.