8 #ifndef CAN_NEW_ARRAY_H
9 #define CAN_NEW_ARRAY_H
41 delete [] this->elems;
void resize(unsigned n)
resize the array
compile-time (static) array of size N
wrapper over operator new/delete []
NewArray()
default initialize pointer to zero
void deallocate()
user-callable deallocation helper
~NewArray()
Array destructor frees memory.
bool allocated() const
return true if memory has been allocated
NewArray(std::size_t n)
construct with (n) elements
void allocate(std::size_t n)
user-callable allocation helper
All CAN symbols are contained in this namespace.