std::experimental::search (3) - Linux Manuals
std::experimental::search: std::experimental::search
NAME
std::experimental::search - std::experimental::search
Synopsis
Defined in header <experimental/algorithm>
template<class ForwardIterator, class Searcher>
ForwardIterator search( ForwardIterator first, ForwardIterator last, (library fundamentals TS)
const Searcher& searcher );
Searches the sequence [first, last) for the pattern specified in the constructor of searcher.
Effectively executes searcher(first, last). (until C++17)
Effectively executes searcher(first, last).first. (since C++17)
Searcher need not be CopyConstructible.
The standard library provides the following searchers:
default_searcher (class template)
boyer_moore_searcher (class template)
boyer_moore_horspool_searcher (class template)
Parameters
This section is incomplete
Return value
Returns the result of searcher.operator(), that is, an iterator to the location at which the substring is found or a copy of last if it was not found.
Complexity
Depends on the searcher
Example
// Run this code
Output:
See also
search (function template)