GCC Middle and Back End API Reference
object_allocator< T > Class Template Reference

#include <alloc-pool.h>

Inheritance diagram for object_allocator< T >:
Collaboration diagram for object_allocator< T >:

Public Member Functions

 object_allocator (const char *name CXX_MEM_STAT_INFO)
 
void release ()
 
void release_if_empty ()
 
Tallocate () ATTRIBUTE_MALLOC
 
voidallocate_raw () ATTRIBUTE_MALLOC
 
void remove (T *object)
 
void remove_raw (void *object)
 
size_t num_elts_current ()
 

Private Attributes

pool_allocator m_allocator
 

Detailed Description

template<typename T>
class object_allocator< T >
Type based memory pool allocator.   

Constructor & Destructor Documentation

◆ object_allocator()

template<typename T >
object_allocator< T >::object_allocator ( const char *name CXX_MEM_STAT_INFO)
inline

Member Function Documentation

◆ allocate()

◆ allocate_raw()

◆ num_elts_current()

◆ release()

◆ release_if_empty()

◆ remove()

◆ remove_raw()

Field Documentation

◆ m_allocator


The documentation for this class was generated from the following file: