BloombergLP::bslstl::BoyerMooreHorspoolSearcher::BoyerMooreHorspoolSearcher

Constructors

Synopses

Declared in <bslstl_boyermoorehorspoolsearcher.h>

Create a searcher with the same state as the specified original.

BoyerMooreHorspoolSearcher(BoyerMooreHorspoolSearcher const& original);
» more...

Create a searcher by moving from the specified original.

BoyerMooreHorspoolSearcher(BloombergLP::bslmf::MovableRef<BoyerMooreHorspoolSearcher> original) noexcept;
» more...

Create a searcher by moving from original using basicAllocator.

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

Create a searcher with the same state as original.

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

Create a searcher for the needle [needleFirst, needleLast)].

BoyerMooreHorspoolSearcher(
    RNDACC_ITR_NEEDLE needleFirst,
    RNDACC_ITR_NEEDLE needleLast,
    HASH hash = HASH(),
    EQUAL equal = EQUAL(),
    BloombergLP::bslma::Allocator* basicAllocator = 0);
» more...

Parameters

NameDescription
originalsearcher whose state to copy
basicAllocatormemory allocator; null uses the default
needleFirstbeginning of the needle sequence
needleLastend of the needle sequence
hashhash functor used to compute mismatch skip distances
equalequality comparison functor for hash and search