nw::ut::MoveArray::MoveArray Constructor

Syntax

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

Arguments

Name Description
in size Number of elements.
in allocator Allocator.
in kind Type of memory expansion method.

Description

Constructor.

This constructor calls on an allocator to allocate memory of the specified size. 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.


CONFIDENTIAL