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

Synopsis

Declared in <bslstl_boyermoorehorspoolsearcher.h>

BoyerMooreHorspoolSearcher_CharImp(
    BloombergLP::bslmf::MovableRef<BoyerMooreHorspoolSearcher_CharImp> 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. If basicAllocator is 0, the currently installed default allocator is used. The original object is left in an unspecified (valid) state.

Parameters

Name

Description

original

object whose state to move from

basicAllocator

memory allocator; null uses the default

Created with MrDocs