Create a blob that holds the same buffers as original, with no factory.

Synopsis

Declared in <bdlbb_blob.h>

Blob(
    Blob const& original,
    bslma::Allocator* basicAllocator = 0);

Description

Create a blob that holds the same buffers as the specified original blob, and has no factory to allocate blob buffers. Since there is no factory, the behavior is undefined if the length of the blob is set beyond the total size. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.

Parameters

Name

Description

original

blob whose buffers are shared

basicAllocator

allocator used to supply memory

Created with MrDocs