#include <stlsoft/memory/malloc_allocator.hpp>

malloc() & free() functions.
| T | The value_type of the allocator |
Public Types | |
| typedef malloc_allocator< T > | class_type |
| The parameterisation of the class. | |
| typedef parent_class_type::value_type | value_type |
| The value type. | |
| typedef parent_class_type::pointer | pointer |
| The pointer type. | |
| typedef parent_class_type::const_pointer | const_pointer |
| The non-mutating (const) pointer type. | |
| typedef parent_class_type::reference | reference |
| The reference type. | |
| typedef parent_class_type::const_reference | const_reference |
| The non-mutating (const) reference type. | |
| typedef parent_class_type::difference_type | difference_type |
| The difference type. | |
| typedef parent_class_type::size_type | size_type |
| The size type. | |
Public Member Functions | |
Construction | |
| malloc_allocator () throw () | |
| Default constructor. | |
| malloc_allocator (class_type const &) | |
| Copy constructor. | |
Allocation | |
| pointer | reallocate (pointer p, size_type n, void const *hint=NULL) |
| typedef malloc_allocator<T> class_type |
| typedef parent_class_type::pointer pointer |
| malloc_allocator | ( | ) | throw () [inline] |
Default constructor.
| malloc_allocator | ( | class_type const & | ) | [inline] |
Copy constructor.
1.5.6