Y
Hacker News
new
|
ask
|
show
|
jobs
by
unnah
1193 days ago
You allocate either on the stack, or on the heap with make_unique and make_shared. Deletion occurs automatically once the object is out of scope.