ACE_Static_Allocator3
Defines a class that provided a highly optimized memory management scheme for allocating memory statically.
Usage
#include <ace/Malloc_T.h>
template<size_t POOL_SIZE>
class ACE_Static_Allocator : public ACE_Static_Allocator_Base
{
public:
inline ACE_Static_Allocator (void);
private:
char pool_[POOL_SIZE];
};
Overview
This class allocates a fixed-size POOL_SIZE of memory and uses the ACE_Static_Allocator_Base class implementations of malloc and calloc to optimize memory allocation from this pool.
Public members
inline ACE_Static_Allocator (void);
This function must be inlined!!!
Private members
char pool_[POOL_SIZE];
Pool contents.
Library
ace