nw::os::IAllocator::AllocAndConstruct Member Function

Syntax

template <typename TObject>
TObject * AllocAndConstruct(
     size_t size,
     u8 alignment = DEFAULT_ALIGNMENT
);

Arguments

Name Description
size
alignment

Return Values

Description

Allocates the memory required for the specified number of objects and calls a constructor.


CONFIDENTIAL