3 ms·
Calling the destructors is identical to ending any scope in C++, including function calls. Where is that extra expense?
by AstralStorm 7y ago
Calling the destructors is identical to ending any scope in C++, including function calls. Where is that extra expense?
- iainmerrick 7y agoYou likely have to parse exception blocks and maybe chase pointers to find the objects to destroy. In the happy path, you can just call the destructors directly.