list<int>::iterator first_leap =find_if(a_list.begin(), a_list.end(), is_leap_year); if (first_leap != a_list.end()) . . . // Found it