BloombergLP::bdlma::LocalBufferedObject::LocalBufferedObject

Create a value_type object using the specified args and allocator.

Synopsis

Declared in <bdlma_localbufferedobject.h>

template<class... ARGS>
LocalBufferedObject(
    std::allocator_arg_t allocatorArg,
    allocator_type allocator,
    ARGS&&... args);

Description

Create a value_type object using the specified args that will allocate memory from a sequential allocator based on a local stack buffer of (template parameter) t_BUFFER_SIZE size; if local stack memory is exhausted, use the specified allocator to supply additional heap memory.

Parameters

NameDescription
allocatorArgallocator-argument tag
allocatorallocator used when the local buffer is exhausted
argsconstructor arguments for the held object