#include "common.h"
#include <new>
#include <stddef.h>
#include <stdlib.h>
Go to the source code of this file.
Macro equivalent of new[] operator: allocates memory using Alloc::malloc(). Notice that this method allocates an extra (size_t) space to retrieve the number of allocated elements when calling Q_ARRAY_DELETE().
template<class T >
T* __Q_ARRAY_NEW |
( |
size_t |
n | ) |
|
template<class T >
void Q_ARRAY_DELETE |
( |
T * |
array | ) |
|
Template equivalent of delete[] operator: explicitely calls destuctors and releases memory using Alloc::free().
Template equivalent of delete operator: explicitely calls destuctor and releases memory using Alloc::free().