I l@ve RuBoard Previous Section Next Section

find_if()

The elements within the container are compared for equality with the specified binary operation. If a match is found, the search ends. find_if() returns an iterator to the element. If no match is found, container.end() is returned.



#include <algorithm> 


find_if( vec.begin(), vec.end(), LessThanVal(ival) ); 
    I l@ve RuBoard Previous Section Next Section