Holds a t_TYPE object with a local sequential allocator arena.
Synopsis
Declared in <bdlma_localbufferedobject.h>
template<
class t_TYPE,
std::size_t t_BUFFER_SIZE = 1024,
bool t_DISABLE_DESTRUCTION = false>
class LocalBufferedObject;
Description
This class contains an object of type t_TYPE and a local sequential allocator with an arena size of t_BUFFER_SIZE, from which the t_TYPE object allocates memory, in a single object. The t_DISABLE_DESTRUCTION template parameter can be used to prevent this class from calling ~t_TYPE() in cases where it is known that t_TYPE manages no resources other than memory, since the memory will be adequately managed by the local sequential allocator.
Type Aliases
Name |
Description |
Allocator type used by this object. |
|
Type of the locally buffered object. |
Enums
Name |
Description |
The |
Member Functions
Name |
Description |
|
Constructors |
|
Destroy this object and free any memory it uses. |
Assign the object held by this container to the specified |
|
|
|
Return the allocator passed at construction. |
|
Dereference operators |
|
Member access operators |
|
|
Declare that this type uses |
Created with MrDocs