Create a searcher by moving from original using basicAllocator.
Synopsis
Declared in <bslstl_boyermoorehorspoolsearcher.h>
BoyerMooreHorspoolSearcher(
BloombergLP::bslmf::MovableRef<BoyerMooreHorspoolSearcher> original,
BloombergLP::bslma::Allocator* basicAllocator);
Description
The new object has the same state ‐‐ needleFirst(), needleLast(), hash(), and equal() ‐‐ as original. 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.
Parameters
Name |
Description |
original |
searcher whose state to move from |
basicAllocator |
memory allocator; null uses the default |
Created with MrDocs