Chombo + EB + MF  3.2
Public Member Functions | List of all members
ArSp::NewArrayAlloc< T > Class Template Reference

Allocator that only permits allocation by new. More...

#include <CHArray.H>

Public Member Functions

T * allocate (const USz_t size)
 
void deallocate (T *p, const USz_t size)
 

Detailed Description

template<typename T>
class ArSp::NewArrayAlloc< T >

Allocator that only permits allocation by new.

Use of CHArray::define(void *const addr, ...) will cause an error

Member Function Documentation

template<typename T >
T* ArSp::NewArrayAlloc< T >::allocate ( const USz_t  size)
inline

References CH_assert, and IntVect::p().

template<typename T >
void ArSp::NewArrayAlloc< T >::deallocate ( T *  p,
const USz_t  size 
)
inline

References IntVect::p().


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