Is “delete this” allowed in C++?

Is it allowed to delete this; if the delete-statement is the last statement that will be executed on that instance of the class? Of course I’m sure that the object represented by the this-pointer is newly-created. I’m thinking about something like this: void SomeModule::doStuff() { // in the controller, “this” object of SomeModule is the … Read more