cpp/experimental/default searcher

A class suitable for use with that delegates the search operation to the standard library's std.

is and.

Member functions
{{member | {{small|std::experimental::default_searcher::}}default_searcher | 2= {{dcl begin}} {{dcl | default_searcher( ForwardIterator pat_first,                 ForwardIterator pat_last,                  BinaryPredicate pred {{=}} BinaryPredicate); }} {{dcl end}} Constructs a {{tt|default_searcher}} by storing copies of {{tt|pat_first}}, {{tt|pat_last}}, and {{tt|pred}}

Exceptions
Any exceptions thrown by the copy constructors of or. }}

{{member | {{small|std::experimental::default_searcher::}}operator | 2= {{dcl begin}} {{dcl rev begin}} {{dcl |until=c++17| template< class ForwardIterator2 > ForwardIterator2 operator( ForwardIterator2 first, ForwardIterator2 last ) const; }} {{dcl |since=c++17| template< class ForwardIterator2 > std::pair operator( ForwardIterator2 first, ForwardIterator2 last ) const; }} {{dcl rev end}} {{dcl end}} The member function called by {{ltt|cpp/experimental/search|std::experimental::search}} to perform a search with this searcher. {{rev begin}} {{rev|until=c++17| Equivalent to {{c|std::search(first, last, pat_first, pat_last, pred);}} }} {{rev|until=c++17| Returns a pair of iterators {{tt|i, j}}, where {{tt|i}} is {{c|std::search(first, last, pat_first, pat_last, pred)}} and {{tt|j}} is {{c|std::next(i, std::distance(pat_first, pat_last))}} unless {{tt|std::search}} returned {{tt|last}} (no match), in which case {{tt|j}} equals {{tt|last}} as well }} {{rev end}}

Return value
}}

Helper Functions
Helper function that constructs a using template argument deduction. Equivalent to

Return value
A constructed with the arguments, ,.