autoreleased

Helper function which allows typed chaining of retain calls.

@nogc @trusted
T
autoreleased
(
T
)
()

Parameters

elem T

The element to perform the operation on

Return Value

Type: T

The element or null if it was freed as a result of the operation.

Meta