cpp/algorithm/find first of

Searches the range for any of the elements in the range.

@1@ Elements are compared using. @3@ Elements are compared using the given binary predicate. @2,4@ Same as, but executed according to.

Return value
Iterator to the first element in the range that is equal to an element from the range. If no such element is found, is returned.

Complexity
Given as  and  as : @1,2@ At most comparisons using @3,4@ At most applications of the predicate