I know emplace is used to do placement new. What is the equivalent placement delete?
x = emplace(yourAllocationFunction!T()); ... clear(x);yourDeallocationFunction(x); // if necessary. For instance, stack data doesn't need to be deallocated
-Steve
I know emplace is used to do placement new. What is the equivalent placement delete?
x = emplace(yourAllocationFunction!T()); ... clear(x);yourDeallocationFunction(x); // if necessary. For instance, stack data doesn't need to be deallocated
-Steve