3 ms·
> malloc/free are not used in modern C++. I think using term "are abstracted away" is better choice here. You still allocate memory, dosen't matter if it's ma
by lossolo 7y ago
> malloc/free are not used in modern C++.
I think using term "are abstracted away" is better choice here. You still allocate memory, dosen't matter if it's malloc/free, mmap/unmap or compiler is doing it for you. It cost time and space. Sometimes the cost is negligible but not always, depends on application.