pointer_alloc Class Template Reference

#include <array.h>


Detailed Description

template<class base_t>
class pointer_alloc< base_t >

A simple class to provide an allocate() function for pointers.

Uses new and delete.

Definition at line 104 of file array.h.


Public Member Functions

void allocate (base_t *&v, size_t i)
 Allocate v for i elements.
void free (base_t *&v)
 Free memory.

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

Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.

Project hosting provided by SourceForge.net Logo, O2scl Sourceforge Project Page