Luna::memnew

template <typename _Ty, typename...>
_Ty * memnew(_Args &&... args)

Allocates heap memory for one object and constructs the object.

Return value

Returns one pointer to the allocated object. Returns nullptr if memory allocation failed.