destruct

Destructs t exactly the same way a compiler does in a case it goes out of scope. Also puts destructed object in its init state if resetInitialState is true, otherwise object state will be undefined (i.e. possibly invalid).

void
destruct
(
T
)
(
ref T t
,
bool resetInitialState = true
)

Meta