nw::os::AllocateAndAssignN Function

Syntax

template <typename TObject>
TObject * AllocateAndAssignN(
     os::IAllocator * allocator,
     int count,
     TObject object
);

Template Arguments

Name Description
TObject Type of object to allocate.

Arguments

Name Description
in allocator Allocator.
in count Quantity to be allocated.
in object Value to fill with.

Return Values

Allocated object.

Description

Allocates memory of the specified size, and assigns the allocated region with the specified value.


CONFIDENTIAL