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

Constructors

== Synopses

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

Create a searcher with the same state as the specified `original`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslstl/BoyerMooreHorspoolSearcher/2constructor-03.adoc[BoyerMooreHorspoolSearcher](xref:BloombergLP/bslstl/BoyerMooreHorspoolSearcher.adoc[BoyerMooreHorspoolSearcher] const& original);
----

[.small]#xref:BloombergLP/bslstl/BoyerMooreHorspoolSearcher/2constructor-03.adoc[_» more&period;&period;&period;_]#

Create a searcher by moving from the specified `original`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslstl/BoyerMooreHorspoolSearcher/2constructor-06.adoc[BoyerMooreHorspoolSearcher](xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef&lt;BoyerMooreHorspoolSearcher&gt;] original) noexcept;
----

[.small]#xref:BloombergLP/bslstl/BoyerMooreHorspoolSearcher/2constructor-06.adoc[_» more&period;&period;&period;_]#

Create a searcher by moving from `original` using `basicAllocator`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslstl/BoyerMooreHorspoolSearcher/2constructor-0c1.adoc[BoyerMooreHorspoolSearcher](
    xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef&lt;BoyerMooreHorspoolSearcher&gt;] original,
    xref:BloombergLP/bslma/Allocator.adoc[BloombergLP::bslma::Allocator]* basicAllocator);
----

[.small]#xref:BloombergLP/bslstl/BoyerMooreHorspoolSearcher/2constructor-0c1.adoc[_» more&period;&period;&period;_]#

Create a searcher with the same state as `original`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslstl/BoyerMooreHorspoolSearcher/2constructor-0b.adoc[BoyerMooreHorspoolSearcher](
    xref:BloombergLP/bslstl/BoyerMooreHorspoolSearcher.adoc[BoyerMooreHorspoolSearcher] const& original,
    xref:BloombergLP/bslma/Allocator.adoc[BloombergLP::bslma::Allocator]* basicAllocator);
----

[.small]#xref:BloombergLP/bslstl/BoyerMooreHorspoolSearcher/2constructor-0b.adoc[_» more&period;&period;&period;_]#

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslstl/BoyerMooreHorspoolSearcher/2constructor-0e.adoc[BoyerMooreHorspoolSearcher](
    RNDACC&lowbar;ITR&lowbar;NEEDLE needleFirst,
    RNDACC&lowbar;ITR&lowbar;NEEDLE needleLast,
    HASH hash = HASH(),
    EQUAL equal = EQUAL(),
    xref:BloombergLP/bslma/Allocator.adoc[BloombergLP::bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/bslstl/BoyerMooreHorspoolSearcher/2constructor-0e.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *original*
| searcher whose state to copy
| *basicAllocator*
| memory allocator&semi; null uses the default
| *needleFirst*
| beginning of the needle sequence
| *needleLast*
| end of the needle sequence
| *hash*
| hash functor used to compute mismatch skip distances
| *equal*
| equality comparison functor for hash and search
|===


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