3 ms·
OK. So "RAII" means what I meant by RAII (just the constructor technique) plus the rest of the normal memory management approach (destructors). And if it's no
by AnimalMuppet 6y ago
OK. So "RAII" means what I meant by RAII (just the constructor technique) plus the rest of the normal memory management approach (destructors). And if it's not stack allocated (or a member of a class that is), you don't get destructors automatically called. I get it.
The only thing I'm left confused about is "global memory segments". How does that fit in? If it's a global it's never destroyed, so you don't have to worry about it? Or did you mean something else?