BloombergLP::bslstl::BoyerMooreHorspoolSearcher::BoyerMooreHorspoolSearcher

Create a searcher with the same state as original.

Synopsis

Declared in <bslstl_boyermoorehorspoolsearcher.h>

BoyerMooreHorspoolSearcher(
    BoyerMooreHorspoolSearcher const& original,
    BloombergLP::bslma::Allocator* basicAllocator);

Description

The new object has the same needleFirst(), needleLast(), hash(), and equal() as original. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.

Parameters

NameDescription
originalsearcher whose state to copy
basicAllocatormemory allocator; null uses the default