Create a searcher with the same state as original.
Declared in <bslstl_boyermoorehorspoolsearcher.h>
BoyerMooreHorspoolSearcher(
BoyerMooreHorspoolSearcher const& original,
BloombergLP::bslma::Allocator* basicAllocator);
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.
| Name | Description |
|---|---|
| original | searcher whose state to copy |
| basicAllocator | memory allocator; null uses the default |