BloombergLP::bslstl::BoyerMooreHorspoolSearcher_GeneralImp::BoyerMooreHorspoolSearcher_GeneralImp

Create an implementation by moving from original using the given allocator.

Synopsis

Declared in <bslstl_boyermoorehorspoolsearcher.h>

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

Description

The state of original is moved (in constant time) to the new searcher if basicAllocator == original.allocator(), and is copied using basicAllocator otherwise. The original object is left in an unspecified (valid) state.

Parameters

NameDescription
originalobject whose state to move from
basicAllocatormemory allocator used to supply memory