#include #include #include #include auto str_equivalence_ignore_case(const std::string& text) { /* FIXME */ } int main() { std::vector a = {"hello", "Hallo", "willkommen"}; auto look_for_hello = str_equivalence_ignore_case("hallo"); auto it = std::find_if(a.begin(), a.end(), look_for_hello); std::cout << "std::find_if stopped at: "; if (it != a.end()) { std::cout << "'" << *it << "'"; } else { std::cout << "end"; } std::cout << std::endl; }