AudRecordLib
|
Classes | |
struct | rebind |
Public Types | |
typedef std::allocator< Type > | BaseAlloc |
typedef BaseAlloc::pointer | pointer |
Public Member Functions | |
StraightHeapAlloc () | |
template<class Other > | |
StraightHeapAlloc (const StraightHeapAlloc< Other > &) | |
pointer | allocate (size_t count) |
pointer | allocate (size_t count, void *) |
void | deallocate (pointer pData, size_t) |
Allocator which directly uses the Win32 heap functions Inherits from allocator for those members which don't need to be changed. Yes, I know this is technically bad but its only debugging code.
Type | The type to allocate memory for |
typedef std::allocator<Type> StraightHeapAlloc< Type >::BaseAlloc |
Base typedef for clarity
typedef BaseAlloc::pointer StraightHeapAlloc< Type >::pointer |
Pointer typedef, also for clarity
StraightHeapAlloc< Type >::StraightHeapAlloc | ( | ) | [inline] |
Does nothing as there's nothing to construct
StraightHeapAlloc< Type >::StraightHeapAlloc | ( | const StraightHeapAlloc< Other > & | ) | [inline] |
Constructs an allocator of one type using a different type There's still nothing to construct so it does nothing
pointer StraightHeapAlloc< Type >::allocate | ( | size_t | count | ) | [inline] |
Allocates count * sizeof(Type) bytes of memory from the process heap and returns it
count | The number of Types to allocate |
pointer StraightHeapAlloc< Type >::allocate | ( | size_t | count, |
void * | |||
) | [inline] |
Allocates count * sizeof(Type) bytes of memory from the process heap and returns it
count | The number of Types to allocate |
void StraightHeapAlloc< Type >::deallocate | ( | pointer | pData, |
size_t | |||
) | [inline] |
Returns memory back to the process heap
pData | The memory to free |