cpp/algorithm/search

@1-4@ Searches for the first occurrence of the sequence of 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.

@5@ Searches the sequence for the pattern specified in the constructor of. Effectively executes. need not be.

Return value
@1-4@ Iterator to the beginning of first occurrence of the sequence in the range. If no such occurrence is found, is returned.

@5@ Returns the result of, that is, an iterator to the location at which the substring is found or a copy of if it was not found.

Complexity
@1-4@ At most comparisons where  and. @5@ Depends on the searcher.