plll
1.0
|
Provides means to allocate, reallocate and release (linear) arrays of objects of type T. More...
#include <matrix-mem.hpp>
Static Public Member Functions | |
static pointer_type | alloc (unsigned int n) |
Creates an array of n elements of type T . The entries are created using the default constructor. | |
template<class S > | |
static pointer_type | alloc (const S &obj, unsigned int n) |
Creates an array of n elements of type T , all being copies of obj (of type S ). | |
static pointer_type | alloc_dontconstruct (unsigned int n) |
Creates an array of n elements of type T . The entries are not constructed. | |
static void | check (pointer_type ptr, unsigned int n) |
Verifies the integrity of an array of n elements of type T . Does nothing for the release memory manager. | |
template<class S > | |
static pointer_type | clone (S *ptr, unsigned int n) |
Creates an array of n elements of type T . The entries are copy-constructed from the given array ptr (with elements of type S ). | |
template<class S > | |
static pointer_type | clone (S *ptr, unsigned int n, unsigned int ncopy) |
Creates an array of n elements of type T . The first ncopy elements are copy-constructed from the given array ptr , the last ones are constructed with the default constructor. | |
template<class S , class SS > | |
static pointer_type | clone (S *ptr, unsigned int n, unsigned int ncopy, const SS ©obj) |
Creates an array of n elements of type T . The first ncopy elements are copy-constructed from the given array ptr , the last ones are constructed with the default constructor. | |
static void | construct (ref_type ref) |
Constructs an object via default constructor. | |
template<class S > | |
static void | copy_construct (ref_type ref, const S &obj) |
Constructs an object via copy constructor. | |
static void | free (pointer_type ptr, unsigned int n) |
Destroys an array of n elements of type T . | |
Provides means to allocate, reallocate and release (linear) arrays of objects of type T.
Definition at line 450 of file matrix-mem.hpp.