added support for input_iterators in find_first_of, as C++11 now specifies