[#BloombergLP-bslstl-DefaultSearcher-2constructor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/DefaultSearcher.adoc[DefaultSearcher]::DefaultSearcher
:relfileprefix: ../../../
:mrdocs:

Create a searcher for the needle `&lsqb;needleFirst, needleLast)&rsqb;`&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;defaultsearcher&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
DefaultSearcher(
    FORWARD&lowbar;ITR&lowbar;NEEDLE needleFirst,
    FORWARD&lowbar;ITR&lowbar;NEEDLE needleLast,
    EQUAL equal = EQUAL());
----

== Description

Optionally supply an `equal` functor for use by `operator()`&period; The behavior is undefined unless `needleFirst` can be advanced to equal `needleLast`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *needleFirst*
| beginning of the needle sequence
| *needleLast*
| end of the needle sequence
| *equal*
| equality comparison functor for search
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
