template <typename TTElemet>
MoveArray(
TTElemet * elements,
size_t capacity,
os::IAllocator * allocator = NULL,
ArrayKind kind = ARRAY_WRAPPER
);
| Name | Description | |
|---|---|---|
| in | elements | Memory allocated for storing elements. |
| in | capacity | Number of capacity elements. |
| in | allocator | Allocator. |
| in | kind | Type of memory expansion method. |
Constructor.
Memory passed to this constructor is freed by a destructor. If kind is set to ARRAY_VARIABILITY, a function for automatically increasing the array size is enabled. Memory is secured internally when the array size is increased automatically. If internal allocation of memory is inappropriate, be sure to set kind to ARRAY_WRAPPER. Also, memory is not freed by the destructor if allocator is set to 0.
CONFIDENTIAL