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
Name |
Description |
original |
searcher whose state to copy |
basicAllocator |
memory allocator; null uses the default |
Created with MrDocs