nu_autorelease

Adds the given item to the topmost auto release pool.

@trusted @nogc
bool
nu_autorelease
(
T
)
()

Parameters

item T

The item to automatically be destroyed when the pool goes out of scope.

Return Value

Type: bool

true if the item was successfully added to the pool, false otherwise.

Meta