nw::ut::MoveArray::MoveArray Constructor

Syntax

MoveArray(
     void * elements,
     size_t size,
     os::IAllocator * allocator = NULL,
     ArrayKind kind = ARRAY_WRAPPER
);

Arguments

Name Description
in elements Memory allocated for storing elements.
in size Number of elements.
in allocator Allocator.
in kind Type of memory expansion method.

Description

Constructor.

Memory passed to this contructor 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