[#BloombergLP-bslstl-BoyerMooreHorspoolSearcher_CharImp-2constructor-0e] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/BoyerMooreHorspoolSearcher_CharImp.adoc[BoyerMooreHorspoolSearcher_CharImp]::BoyerMooreHorspoolSearcher_CharImp :relfileprefix: ../../../ :mrdocs: Constructors == Synopses Declared in `<bslstl_boyermoorehorspoolsearcher.h>` Create a `BoyerMooreHorspoolSearcher_CharImp` object having same state as the specified `original` object. The allocator of `original` is propagated to the new object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bslstl/BoyerMooreHorspoolSearcher_CharImp/2constructor-0dc.adoc[BoyerMooreHorspoolSearcher_CharImp](xref:BloombergLP/bslstl/BoyerMooreHorspoolSearcher_CharImp.adoc[BoyerMooreHorspoolSearcher_CharImp] const& original); ---- [.small]#xref:BloombergLP/bslstl/BoyerMooreHorspoolSearcher_CharImp/2constructor-0dc.adoc[_» more..._]# Create a `BoyerMooreHorspoolSearcher_CharImp` object having same state as the specified `original` object by moving (in constant time) the state of the original object to the new object. The allocator of `original` is propagated to the new object. The `original` object is left in an unspecified (valid) state. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bslstl/BoyerMooreHorspoolSearcher_CharImp/2constructor-0dd.adoc[BoyerMooreHorspoolSearcher_CharImp](xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef<BoyerMooreHorspoolSearcher_CharImp>] original) noexcept; ---- [.small]#xref:BloombergLP/bslstl/BoyerMooreHorspoolSearcher_CharImp/2constructor-0dd.adoc[_» more..._]# Create a `BoyerMooreHorspoolSearcher_CharImp` object having the same state as the specified `original` object and that uses the specified `basicAllocator` to supply memory. The state of `original` is moved (in constant time) to the new searcher if `basicAllocator == original.allocator()`, and is copied using `basicAllocator` otherwise. If `basicAllocator` is 0, the currently installed default allocator is used. The `original` object is left in an unspecified (valid) state. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bslstl/BoyerMooreHorspoolSearcher_CharImp/2constructor-03.adoc[BoyerMooreHorspoolSearcher_CharImp]( xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef<BoyerMooreHorspoolSearcher_CharImp>] original, xref:BloombergLP/bslma/Allocator.adoc[BloombergLP::bslma::Allocator]* basicAllocator); ---- [.small]#xref:BloombergLP/bslstl/BoyerMooreHorspoolSearcher_CharImp/2constructor-03.adoc[_» more..._]# Create a `BoyerMooreHorspoolSearcher_CharImp` object having the same state as the specified `original` object and that uses the specified `basicAllocator` to supply memory. If `basicAllocator` is 0, the currently installed default allocator is used. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bslstl/BoyerMooreHorspoolSearcher_CharImp/2constructor-08.adoc[BoyerMooreHorspoolSearcher_CharImp]( xref:BloombergLP/bslstl/BoyerMooreHorspoolSearcher_CharImp.adoc[BoyerMooreHorspoolSearcher_CharImp] const& original, xref:BloombergLP/bslma/Allocator.adoc[BloombergLP::bslma::Allocator]* basicAllocator); ---- [.small]#xref:BloombergLP/bslstl/BoyerMooreHorspoolSearcher_CharImp/2constructor-08.adoc[_» more..._]# Create a `BoyerMooreHorspoolSearcher_CharImp` object for the sequence of `char` values in the specified range `[needleFirst, needlelast)]`. This implementation is invoked when the specified `hash` is `bsl::hash<char>` and the specified `equal` is `bsl::equal_to<char>`. Neither functor is used because for the special case of `char` the needle metadata is maintained in a fixed size array (256 elements). As always, the specified `basicAllocator` is used to supply memory. If `basicAllocator` is 0, the currently installed default allocator is used. The behavior is undefined unless `needleFirst` can be advanced to `needleLast`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bslstl/BoyerMooreHorspoolSearcher_CharImp/2constructor-04.adoc[BoyerMooreHorspoolSearcher_CharImp]( RNDACC_ITR_NEEDLE needleFirst, RNDACC_ITR_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..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#