"Steven Schveighoffer" <schvei...@yahoo.com> wrote in message
news:op.vnpz6ob6eav...@steve-laptop...
On Tue, 14 Dec 2010 15:18:32 -0500, Craig Black <craigbla...@cox.net>
wrote:
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
Is there a way to explicitly invoke a struct destructor without doing an
explicit delete?
-Craig