arr< T > Class Template Reference
[Array classes]
#include <arr.h>
List of all members.
Detailed Description
template<typename T>
class arr< T >
One-dimensional array type.
Definition at line 300 of file arr.h.
Constructor & Destructor Documentation
Creates a zero-sized array.
Definition at line 304 of file arr.h.
Creates an array with sz entries.
Definition at line 306 of file arr.h.
Creates an array with sz entries, and initializes them with inival.
Definition at line 309 of file arr.h.
Creates an array with sz entries, which uses the memory pointed to by ptr.
- Note:
- ptr will not be deallocated by the destructor.
- Warning:
- Only use this if you REALLY know what you are doing. In particular, this is only safely usable if
-
T is a POD type
-
ptr survives during the lifetime of the array object
-
ptr is not subject to garbage collection
Other restrictions may apply. You have been warned.
Definition at line 321 of file arr.h.
template<typename T>
arr< T >::arr |
( |
const arr< T > & |
orig |
) |
[inline] |
Creates an array which is a copy of orig. The data in orig is duplicated.
Definition at line 324 of file arr.h.
The documentation for this class was generated from the following file: