Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
std::malloc is an STL function used in C-style memory management:
Prefer to use the C++ keyword new over std::malloc, as std::malloc does not call a constructor. Prefer to use the C++ keyword delete over std::free, as std::free does not call a destructor.
#include <cassert> |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.