C++ Standard Library find_if() Sample

Description

find_if() finds an element that matches a user-defined predicate, in a sequence of unsorted elements, and returns an iterator to it.

Declaration

	template <class In, class Pred>
	    In find_if(In, In, Pred);

Concept

The sample program defines a vector<string> and adds several strings to it. A predicate is used to find the first string that starts with an upper case letter, and its value (Pear) is displayed.

Supported
Supported
Supported