std::experimental::boyer_moore_horspool_searcher, (3) - Linux Manuals
std::experimental::boyer_moore_horspool_searcher,: std::experimental::boyer_moore_horspool_searcher,
NAME
std::experimental::boyer_moore_horspool_searcher, - std::experimental::boyer_moore_horspool_searcher,
Synopsis
std::experimental::boyer_moore_horspool_searcher::boyer_moore_horspool_searcher
std::experimental::boyer_moore_horspool_searcher::operator()
Defined in header
template<
class Hash
std::iterator_traits<RandomIt1>::value_type>,
class BinaryPredicate
class boyer_moore_horspool_searcher;
A searcher suitable for use with std::experimental::search that implements the
Boyer-Moore-Horspool string searching algorithm.
boyer_moore_horspool_searcher is CopyConstructible and CopyAssignable.
RandomIt1 must meet the requirements of LegacyRandomAccessIterator.
Member functions
boyer_moore_horspool_searcher(
RandomIt1 pat_last,
Hash hf
BinaryPredicate pred
Constructs a boyer_moore_horspool_searcher by storing copies of pat_first, pat_last,
hf, and pred, setting up any necessary internal data structures.
The value type of RandomIt1 must be DefaultConstructible, CopyConstructible and
CopyAssignable.
For any two values A and B of the type std::iterator_traits<RandomIt1>::value_type,
if pred(A, B) Parameters
pat_first, pat_last - a pair of iterators designating the string to be searched for
hf
pred Exceptions
Any exceptions thrown by
May also throw std::bad_alloc if additional memory required for internal data
structures cannot be allocated.
template<
RandomIt2 operator()(
template<
std::pair<RandomIt2,RandomIt2>
last
The member function called by std::experimental::search to perform a search with
this searcher. RandomIt2 must meet the requirements of LegacyRandomAccessIterator.
RandomIt1 and RandomIt2 must have the same value type.
Parameters
first, last - a pair of iterators designating the string to be examined
Return value
If the pattern
Otherwise, an iterator to the first position in
subsequence that compares equal to
pred is located, or a copy of last otherwise.
If the pattern
make_pair(first, first).
Otherwise, returns a pair of iterators to the first and one past last
positions in
[pat_first, pat_last)
make_pair(last, last)
template<
class Hash
std::iterator_traits<RandomIt>::value_type>,
class BinaryPredicate
boyer_moore_horspool_searcher<RandomIt, Hash,
BinaryPredicate>