Create a BoyerMooreHorspoolSearcher object having same state ‐‐ needleFirst(), needleLast(), hash(), and equal() ‐‐ as the specified original object. The specified basicAllocator is used to supply memory. If basicAllocator is 0, the currently installed default allocator is used. The state of original is moved (in constant time) to the new searcher if basicAllocator == original.allocator(), and is move‐inserted (in linear time) using basicAllocator otherwise. The original object is left in an unspecified (valid) state.

Synopsis

Declared in <bslstl_boyermoorehorspoolsearcher.h>

BoyerMooreHorspoolSearcher(
    BloombergLP::bslmf::MovableRef<BoyerMooreHorspoolSearcher> original,
    BloombergLP::bslma::Allocator* basicAllocator);

Created with MrDocs