[#BloombergLP-bslstl-BoyerMooreHorspoolSearcher_CharImp-2constructor-0e]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/BoyerMooreHorspoolSearcher_CharImp.adoc[BoyerMooreHorspoolSearcher&lowbar;CharImp]::BoyerMooreHorspoolSearcher&lowbar;CharImp
:relfileprefix: ../../../
:mrdocs:

Constructors

== Synopses

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

Copy&hyphen;construct a `BoyerMooreHorspoolSearcher&lowbar;CharImp`&period;


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

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

Create an implementation by moving from the specified `original`&period;


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

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

Create an implementation by moving from `original` using the given allocator&period;


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

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

Create an implementation with the same state as `original`&period;


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

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

Create a char&hyphen;optimized implementation for `&lsqb;needleFirst, needleLast)&rsqb;`&period;


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

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *original*
| object 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 (unused in this specialization)
| *equal*
| equality comparison functor (unused in this specialization)
|===


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