#include <CHArray.H>
Allocators used by class array are simplified versions of the std::allocator and may contain member data. The following members are required:
Public Member Functions | |
DefaultArrayAlloc () | |
T * | allocate (const USz_t size) |
T * | allocate (void *const addr, const USz_t size) |
void | deallocate (T *p, const USz_t size) |
Private Types | |
enum | AllocBy { AllocUndefined, AllocNew, AllocRaw } |
Private Attributes | |
AllocBy | m_allocBy |
enum ArSp::DefaultArrayAlloc::AllocBy [private] |
ArSp::DefaultArrayAlloc< T >::DefaultArrayAlloc | ( | ) | [inline] |
T* ArSp::DefaultArrayAlloc< T >::allocate | ( | const USz_t | size | ) | [inline] |
References CH_assert, and IntVect::p().
T* ArSp::DefaultArrayAlloc< T >::allocate | ( | void *const | addr, | |
const USz_t | size | |||
) | [inline] |
void ArSp::DefaultArrayAlloc< T >::deallocate | ( | T * | p, | |
const USz_t | size | |||
) | [inline] |
AllocBy ArSp::DefaultArrayAlloc< T >::m_allocBy [private] |